diff options
author | boliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-10 22:49:04 +0000 |
---|---|---|
committer | boliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-10 22:49:04 +0000 |
commit | c05dfbbb633b1955c57e0b5e12e8cd26801231c4 (patch) | |
tree | 87e5490353b1a69b901336081ceab73bffd9842d /cc/layers/picture_layer_impl.cc | |
parent | 6a8ab1dceba32f021f112ce62c8ac80d70e658c3 (diff) | |
download | chromium_src-c05dfbbb633b1955c57e0b5e12e8cd26801231c4.zip chromium_src-c05dfbbb633b1955c57e0b5e12e8cd26801231c4.tar.gz chromium_src-c05dfbbb633b1955c57e0b5e12e8cd26801231c4.tar.bz2 |
Pass resourceless software mode in SetExternalConstraints
This fixes the bug that resourceless software mode not
dirtying the draw properties.
This allows OutputSurface::ForcedDrawToSoftwareDevice to be
removed. And merged the valid_for_tile_management parameter
into resourceless_software_draw. This effectively reverses
the last bool parameter on SetExternalDrawConstraints.
BUG=391829
Review URL: https://codereview.chromium.org/376683004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282445 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layers/picture_layer_impl.cc')
-rw-r--r-- | cc/layers/picture_layer_impl.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cc/layers/picture_layer_impl.cc b/cc/layers/picture_layer_impl.cc index 885ac67..094cd4f 100644 --- a/cc/layers/picture_layer_impl.cc +++ b/cc/layers/picture_layer_impl.cc @@ -401,7 +401,9 @@ void PictureLayerImpl::UpdateTiles( DCHECK(!occlusion_tracker || layer_tree_impl()->settings().use_occlusion_for_tile_prioritization); - if (layer_tree_impl()->device_viewport_valid_for_tile_management()) { + // Transforms and viewport are invalid for tile management inside a + // resourceless software draw, so don't update them. + if (!layer_tree_impl()->resourceless_software_draw()) { visible_rect_for_tile_priority_ = visible_content_rect(); viewport_size_for_tile_priority_ = layer_tree_impl()->DrawViewportSize(); screen_space_transform_for_tile_priority_ = screen_space_transform(); |