summaryrefslogtreecommitdiffstats
path: root/cc/layers/picture_image_layer_impl.h
diff options
context:
space:
mode:
authorajuma@chromium.org <ajuma@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-09 17:49:22 +0000
committerajuma@chromium.org <ajuma@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-09 17:49:22 +0000
commit1c3626ee7aa7f098e70aef46c2a14b8a68e2251b (patch)
treeffa3b15e62e3c1fe6bfa98a726b4ff969f40e1b3 /cc/layers/picture_image_layer_impl.h
parent44d54065597d940f02c27b6ca8ccbfc39e837b66 (diff)
downloadchromium_src-1c3626ee7aa7f098e70aef46c2a14b8a68e2251b.zip
chromium_src-1c3626ee7aa7f098e70aef46c2a14b8a68e2251b.tar.gz
chromium_src-1c3626ee7aa7f098e70aef46c2a14b8a68e2251b.tar.bz2
Rasterize at maximum scale for scale animations on CPU-rasterized layers
This re-rasterizes CPU-rasterized layers animating scale at the maximum scale that will be applied during the animation, if this maximum scale can be computed. BUG=224913 Review URL: https://codereview.chromium.org/226283004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262737 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layers/picture_image_layer_impl.h')
-rw-r--r--cc/layers/picture_image_layer_impl.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/cc/layers/picture_image_layer_impl.h b/cc/layers/picture_image_layer_impl.h
index 0b3b246..483d5f2 100644
--- a/cc/layers/picture_image_layer_impl.h
+++ b/cc/layers/picture_image_layer_impl.h
@@ -24,6 +24,7 @@ class CC_EXPORT PictureImageLayerImpl : public PictureLayerImpl {
virtual void CalculateContentsScale(float ideal_contents_scale,
float device_scale_factor,
float page_scale_factor,
+ float maximum_animation_contents_scale,
bool animating_transform_to_screen,
float* contents_scale_x,
float* contents_scale_y,
@@ -34,8 +35,9 @@ class CC_EXPORT PictureImageLayerImpl : public PictureLayerImpl {
virtual bool ShouldAdjustRasterScale(
bool animating_transform_to_screen) const OVERRIDE;
- virtual void RecalculateRasterScales(
- bool animating_transform_to_screen) OVERRIDE;
+ virtual void RecalculateRasterScales(bool animating_transform_to_screen,
+ float maximum_animation_contents_scale)
+ OVERRIDE;
virtual void GetDebugBorderProperties(
SkColor* color, float* width) const OVERRIDE;