Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Unified Diff: cc/layers/picture_image_layer_impl.cc

Issue 226283004: Rasterize at maximum scale for scale animations on CPU-rasterized layers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/picture_image_layer_impl.h ('k') | cc/layers/picture_image_layer_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_image_layer_impl.cc
diff --git a/cc/layers/picture_image_layer_impl.cc b/cc/layers/picture_image_layer_impl.cc
index b9a57f2b7b0c4f4a9fb87b4051f8c8696df2e31e..62bab45108a9b9b53817abf5a628f70183e58e5f 100644
--- a/cc/layers/picture_image_layer_impl.cc
+++ b/cc/layers/picture_image_layer_impl.cc
@@ -31,6 +31,7 @@ void PictureImageLayerImpl::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,
@@ -41,6 +42,7 @@ void PictureImageLayerImpl::CalculateContentsScale(
PictureLayerImpl::CalculateContentsScale(ideal_contents_scale,
device_scale_factor,
page_scale_factor,
+ maximum_animation_contents_scale,
animating_transform_to_screen,
contents_scale_x,
contents_scale_y,
@@ -59,9 +61,11 @@ bool PictureImageLayerImpl::ShouldAdjustRasterScale(
}
void PictureImageLayerImpl::RecalculateRasterScales(
- bool animating_transform_to_screen) {
+ bool animating_transform_to_screen,
+ float maximum_animation_contents_scale) {
// Defaults from PictureLayerImpl.
- PictureLayerImpl::RecalculateRasterScales(animating_transform_to_screen);
+ PictureLayerImpl::RecalculateRasterScales(animating_transform_to_screen,
+ maximum_animation_contents_scale);
// Don't scale images during rastering to ensure image quality, save memory
// and avoid frequent re-rastering on change of scale.
« no previous file with comments | « cc/layers/picture_image_layer_impl.h ('k') | cc/layers/picture_image_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698