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

Unified Diff: cc/test/layer_tree_host_common_test.h

Issue 2105673003: cc: Compute animation scale on demand (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit changes Created 4 years, 6 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/proto/property_tree.proto ('k') | cc/trees/draw_property_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/layer_tree_host_common_test.h
diff --git a/cc/test/layer_tree_host_common_test.h b/cc/test/layer_tree_host_common_test.h
index e4f16d3987eb0b61e96ed8fba54cf20691058ac7..1d38e71b6d973ca8bdfb62c4e6b9864a4ae8cdfd 100644
--- a/cc/test/layer_tree_host_common_test.h
+++ b/cc/test/layer_tree_host_common_test.h
@@ -142,6 +142,22 @@ class LayerTreeHostCommonTest : public LayerTreeHostCommonTestBase,
layer_impl->layer_tree_impl()->DidUpdateScrollOffset(
layer_impl->id(), layer_impl->transform_tree_index());
}
+
+ static float GetMaximumAnimationScale(LayerImpl* layer_impl) {
+ return layer_impl->layer_tree_impl()
+ ->property_trees()
+ ->GetAnimationScales(layer_impl->transform_tree_index(),
+ layer_impl->layer_tree_impl())
+ .maximum_animation_scale;
+ }
+
+ static float GetStartingAnimationScale(LayerImpl* layer_impl) {
+ return layer_impl->layer_tree_impl()
+ ->property_trees()
+ ->GetAnimationScales(layer_impl->transform_tree_index(),
+ layer_impl->layer_tree_impl())
+ .starting_animation_scale;
+ }
};
} // namespace cc
« no previous file with comments | « cc/proto/property_tree.proto ('k') | cc/trees/draw_property_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698