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

Unified Diff: cc/layers/draw_properties.h

Issue 1076313006: Animation start scale should be considered for the raster scale (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing and Added more tests Created 5 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/animation/layer_animation_controller_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/draw_properties.h
diff --git a/cc/layers/draw_properties.h b/cc/layers/draw_properties.h
index 930f7bf0e95a29119937d0ad85adff2193f2959e..3dfb203b33b116c679c50efe676bb095e0da2e4a 100644
--- a/cc/layers/draw_properties.h
+++ b/cc/layers/draw_properties.h
@@ -43,6 +43,7 @@ struct CC_EXPORT DrawProperties {
last_drawn_render_surface_layer_list_id(0),
ideal_contents_scale(0.f),
maximum_animation_contents_scale(0.f),
+ starting_animation_contents_scale(0.f),
page_scale_factor(0.f),
device_scale_factor(0.f) {}
@@ -156,6 +157,10 @@ struct CC_EXPORT DrawProperties {
// should be rastered at to be crisp.
float maximum_animation_contents_scale;
+ // The scale during the layer animation start at which content should be
+ // rastered at to be crisp.
+ float starting_animation_contents_scale;
+
// The page scale factor that is applied to the layer. Since some layers may
// have page scale applied and others not, this may differ between layers.
float page_scale_factor;
« no previous file with comments | « cc/animation/layer_animation_controller_unittest.cc ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698