LibWebView+WebContent: Make it possible to change the painting interval

This allows us to paint at the refresh rate of the screen. The default
is 60, as before, in case it never gets set by anything.
This commit is contained in:
Luke Wilde 2025-07-25 13:10:00 +01:00 committed by Alexander Kalenik
commit c93c30d596
Notes: github-actions[bot] 2025-07-26 14:10:40 +00:00
7 changed files with 31 additions and 1 deletions

View file

@ -589,6 +589,7 @@ void ViewImplementation::initialize_client(CreateNewClient create_new_client)
client().async_set_window_handle(m_client_state.page_index, m_client_state.client_handle);
client().async_set_device_pixels_per_css_pixel(m_client_state.page_index, m_device_pixel_ratio);
client().async_set_maximum_frames_per_second(m_client_state.page_index, m_maximum_frames_per_second);
client().async_set_system_visibility_state(m_client_state.page_index, m_system_visibility_state);
if (auto webdriver_content_ipc_path = Application::browser_options().webdriver_content_ipc_path; webdriver_content_ipc_path.has_value())