LibWebView: Mark compositor viewport updates as resizing
Tell the compositor that viewport updates from handle_resize are part of a resize operation. This keeps the compositor backing store manager on its padded live-resize path instead of forcing an exact-size backing store allocation for every browser window resize tick.
This commit is contained in:
parent
fa1896c2c9
commit
2eb14f2c2f
1 changed files with 1 additions and 1 deletions
|
|
@ -727,7 +727,7 @@ void ViewImplementation::apply_zoom_for_current_host()
|
|||
void ViewImplementation::handle_resize()
|
||||
{
|
||||
client().async_set_viewport(page_id(), viewport_size(), m_device_pixel_ratio, m_is_fullscreen);
|
||||
Application::the().update_compositor_viewport(client().compositor_context_id_for_page(page_id()), viewport_size().to_type<int>());
|
||||
Application::the().update_compositor_viewport(client().compositor_context_id_for_page(page_id()), viewport_size().to_type<int>(), Web::Compositor::WindowResizingInProgress::Yes);
|
||||
}
|
||||
|
||||
void ViewImplementation::initialize_client(CreateNewClient create_new_client)
|
||||
|
|
|
|||
Loading…
Reference in a new issue