Commit a533d9b8 authored by bokan@chromium.org's avatar bokan@chromium.org

Explicitly resize inner viewport container layer on SetViewportSize

SetViewportSize previously relied on UpdateInnerViewportContainerSize to
resize the inner viewport container layer; however, as of r253909, this
method is a no-op if the container layer has masks_to_bounds set (i.e.
non-Android platforms).

This fix explicitly resizes the inner viewport container layer to be the
same size as the newly resized device viewport before calling
UpdateInnerViewportContainerSize. This fixes the situation in the bug
where the viewport size is changed but nothing in the layer tree changes
so no new frame is committed.

BUG=387678

Review URL: https://codereview.chromium.org/381703002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282687 0039d316-1c4b-4281-b951-d872f2087c98
parent 3dafa94b
...@@ -2115,6 +2115,7 @@ void LayerTreeHostImpl::SetViewportSize(const gfx::Size& device_viewport_size) { ...@@ -2115,6 +2115,7 @@ void LayerTreeHostImpl::SetViewportSize(const gfx::Size& device_viewport_size) {
UpdateInnerViewportContainerSize(); UpdateInnerViewportContainerSize();
client_->OnCanDrawStateChanged(CanDraw()); client_->OnCanDrawStateChanged(CanDraw());
SetFullRootLayerDamage(); SetFullRootLayerDamage();
active_tree_->set_needs_update_draw_properties();
} }
void LayerTreeHostImpl::SetOverdrawBottomHeight(float overdraw_bottom_height) { void LayerTreeHostImpl::SetOverdrawBottomHeight(float overdraw_bottom_height) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment