diff options
author | dgozman@chromium.org <dgozman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-22 16:03:47 +0000 |
---|---|---|
committer | dgozman@chromium.org <dgozman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-22 16:03:47 +0000 |
commit | 57d1a33a64bc9d0f7027dbaaa50c910c78a4eb49 (patch) | |
tree | f64648bdef446314254d9db6a1943b44ce39e0dd | |
parent | 3364d14b36d128df0d147224a2415f8c28ae3b6f (diff) | |
download | chromium_src-57d1a33a64bc9d0f7027dbaaa50c910c78a4eb49.zip chromium_src-57d1a33a64bc9d0f7027dbaaa50c910c78a4eb49.tar.gz chromium_src-57d1a33a64bc9d0f7027dbaaa50c910c78a4eb49.tar.bz2 |
Merge 282687 "Explicitly resize inner viewport container layer o..."
> 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
TBR=bokan@chromium.org
Review URL: https://codereview.chromium.org/402403006
git-svn-id: svn://svn.chromium.org/chrome/branches/2062/src@284688 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | cc/trees/layer_tree_host_impl.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc index bb7ceec..e35187e 100644 --- a/cc/trees/layer_tree_host_impl.cc +++ b/cc/trees/layer_tree_host_impl.cc @@ -2086,6 +2086,7 @@ void LayerTreeHostImpl::SetViewportSize(const gfx::Size& device_viewport_size) { UpdateInnerViewportContainerSize(); client_->OnCanDrawStateChanged(CanDraw()); SetFullRootLayerDamage(); + active_tree_->set_needs_update_draw_properties(); } void LayerTreeHostImpl::SetOverdrawBottomHeight(float overdraw_bottom_height) { |