summaryrefslogtreecommitdiffstats
path: root/cc/test/tiled_layer_test_common.cc
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/test/tiled_layer_test_common.cc
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/test/tiled_layer_test_common.cc')
-rw-r--r--cc/test/tiled_layer_test_common.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/cc/test/tiled_layer_test_common.cc b/cc/test/tiled_layer_test_common.cc
index 430eddf..cd4f9bd 100644
--- a/cc/test/tiled_layer_test_common.cc
+++ b/cc/test/tiled_layer_test_common.cc
@@ -116,6 +116,7 @@ void FakeTiledLayer::UpdateContentsScale(float ideal_contents_scale) {
CalculateContentsScale(ideal_contents_scale,
1.f,
1.f,
+ 1.f,
false, // animating_transform_to_screen
&draw_properties().contents_scale_x,
&draw_properties().contents_scale_y,
@@ -156,6 +157,7 @@ void FakeTiledLayerWithScaledBounds::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,