Explicitly resize inner viewport container layer on SetViewportSize
commita533d9b8f2da47b2abec2d95e63c882f00130715
authorbokan@chromium.org <bokan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 11 Jul 2014 20:29:24 +0000 (11 20:29 +0000)
committerbokan@chromium.org <bokan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 11 Jul 2014 20:29:24 +0000 (11 20:29 +0000)
tree84e777e88a5063750a0d2d96df08f5dcf8412fd7
parent3dafa94be4efb006247005a1b7bfe75049c0dac5
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
cc/trees/layer_tree_host_impl.cc