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

Unified Diff: ui/compositor/test/test_layer_animation_delegate.cc

Issue 12226080: Thread ui transform animations (Closed) Base URL: http://git.chromium.org/chromium/src.git@DefineThreadedLayerAnimationElements
Patch Set: Speed up animations in WebContentsViewAuraTest.QuickOverscrollDirectionChange Created 7 years, 9 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: ui/compositor/test/test_layer_animation_delegate.cc
diff --git a/ui/compositor/test/test_layer_animation_delegate.cc b/ui/compositor/test/test_layer_animation_delegate.cc
index d452fc0ce8de7ed3587d55c00b8aef94dbf2eb46..ce875e68efaab8c2debf7be2a33e277ae7a353ab 100644
--- a/ui/compositor/test/test_layer_animation_delegate.cc
+++ b/ui/compositor/test/test_layer_animation_delegate.cc
@@ -63,8 +63,7 @@ const gfx::Rect& TestLayerAnimationDelegate::GetBoundsForAnimation() const {
return bounds_;
}
-const gfx::Transform&
-TestLayerAnimationDelegate::GetTransformForAnimation() const {
+gfx::Transform TestLayerAnimationDelegate::GetTransformForAnimation() const {
return transform_;
}
@@ -88,6 +87,10 @@ SkColor TestLayerAnimationDelegate::GetColorForAnimation() const {
return color_;
}
+float TestLayerAnimationDelegate::GetDeviceScaleFactor() const {
+ return 1.0f;
+}
+
void TestLayerAnimationDelegate::AddThreadedAnimation(
scoped_ptr<cc::Animation> animation) {
}
« no previous file with comments | « ui/compositor/test/test_layer_animation_delegate.h ('k') | ui/compositor/transform_animation_curve_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698