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

Unified Diff: cc/layers/picture_layer_impl.h

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_unittest.cc ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_impl.h
diff --git a/cc/layers/picture_layer_impl.h b/cc/layers/picture_layer_impl.h
index 8e4f24a5fd50fd36f86bdb60529eb52f3bd354bd..b9a04eaf3bb509980ce27a2f5c71f079c756ebeb 100644
--- a/cc/layers/picture_layer_impl.h
+++ b/cc/layers/picture_layer_impl.h
@@ -97,6 +97,7 @@ class CC_EXPORT 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,
@@ -145,14 +146,15 @@ class CC_EXPORT PictureLayerImpl
void RemoveTiling(float contents_scale);
void RemoveAllTilings();
void SyncFromActiveLayer(const PictureLayerImpl* other);
- void ManageTilings(bool animating_transform_to_screen);
+ void ManageTilings(bool animating_transform_to_screen,
+ float maximum_animation_contents_scale);
bool ShouldHaveLowResTiling() const {
return should_use_low_res_tiling_ && !ShouldUseGpuRasterization();
}
virtual bool ShouldAdjustRasterScale(
bool animating_transform_to_screen) const;
- virtual void RecalculateRasterScales(
- bool animating_transform_to_screen);
+ virtual void RecalculateRasterScales(bool animating_transform_to_screen,
+ float maximum_animation_contents_scale);
void CleanUpTilingsOnActiveLayer(
std::vector<PictureLayerTiling*> used_tilings);
float MinimumContentsScale() const;
« no previous file with comments | « cc/layers/picture_image_layer_impl_unittest.cc ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698