summaryrefslogtreecommitdiffstats
path: root/cc/layers/picture_layer_impl.h
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-01 17:43:37 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-01 17:43:37 +0000
commitbac6ddbb41a551655b8802c2253ed21a0ab9a992 (patch)
treeeab78a7667a312c089e356a57eb695e0f6b5a5c1 /cc/layers/picture_layer_impl.h
parent1343a880d6aebf73a384e89d0e3d0e0fb7d2e78a (diff)
downloadchromium_src-bac6ddbb41a551655b8802c2253ed21a0ab9a992.zip
chromium_src-bac6ddbb41a551655b8802c2253ed21a0ab9a992.tar.gz
chromium_src-bac6ddbb41a551655b8802c2253ed21a0ab9a992.tar.bz2
cc: Reraster and fix the raster source scale factor when it changes.
When a web page changes the scale of elements in the page outside of an animation, we should have that cause us to make a new tiling at the new scale. However, we don't want to do this every main thread frame. So when the first change happens, we set raster_source_scale_is_fixed_ to true and change the source scale to 1, ignoring any css transform scales when rastering the layer from then on. R=enne BUG=368201 Review URL: https://codereview.chromium.org/262613005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267570 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layers/picture_layer_impl.h')
-rw-r--r--cc/layers/picture_layer_impl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/cc/layers/picture_layer_impl.h b/cc/layers/picture_layer_impl.h
index bf24251..b559e3d 100644
--- a/cc/layers/picture_layer_impl.h
+++ b/cc/layers/picture_layer_impl.h
@@ -204,7 +204,8 @@ class CC_EXPORT PictureLayerImpl
float raster_contents_scale_;
float low_res_raster_contents_scale_;
- bool raster_source_scale_was_animating_;
+ bool raster_source_scale_is_fixed_;
+ bool was_animating_transform_to_screen_;
bool is_using_lcd_text_;
bool needs_post_commit_initialization_;
// A sanity state check to make sure UpdateTilePriorities only gets called