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

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: Address review comments 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
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..1a3383a84f3e938f7b4f5b2fe105749ba31e061f 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_scale_factor,
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_scale_factor);
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_scale_factor);
void CleanUpTilingsOnActiveLayer(
std::vector<PictureLayerTiling*> used_tilings);
float MinimumContentsScale() const;

Powered by Google App Engine
This is Rietveld 408576698