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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/compositor/test/test_layer_animation_delegate.h" 5 #include "ui/compositor/test/test_layer_animation_delegate.h"
6 6
7 namespace ui { 7 namespace ui {
8 8
9 TestLayerAnimationDelegate::TestLayerAnimationDelegate() 9 TestLayerAnimationDelegate::TestLayerAnimationDelegate()
10 : opacity_(1.0f), 10 : opacity_(1.0f),
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 color_ = color; 56 color_ = color;
57 } 57 }
58 58
59 void TestLayerAnimationDelegate::ScheduleDrawForAnimation() { 59 void TestLayerAnimationDelegate::ScheduleDrawForAnimation() {
60 } 60 }
61 61
62 const gfx::Rect& TestLayerAnimationDelegate::GetBoundsForAnimation() const { 62 const gfx::Rect& TestLayerAnimationDelegate::GetBoundsForAnimation() const {
63 return bounds_; 63 return bounds_;
64 } 64 }
65 65
66 const gfx::Transform& 66 gfx::Transform TestLayerAnimationDelegate::GetTransformForAnimation() const {
67 TestLayerAnimationDelegate::GetTransformForAnimation() const {
68 return transform_; 67 return transform_;
69 } 68 }
70 69
71 float TestLayerAnimationDelegate::GetOpacityForAnimation() const { 70 float TestLayerAnimationDelegate::GetOpacityForAnimation() const {
72 return opacity_; 71 return opacity_;
73 } 72 }
74 73
75 bool TestLayerAnimationDelegate::GetVisibilityForAnimation() const { 74 bool TestLayerAnimationDelegate::GetVisibilityForAnimation() const {
76 return visibility_; 75 return visibility_;
77 } 76 }
78 77
79 float TestLayerAnimationDelegate::GetBrightnessForAnimation() const { 78 float TestLayerAnimationDelegate::GetBrightnessForAnimation() const {
80 return brightness_; 79 return brightness_;
81 } 80 }
82 81
83 float TestLayerAnimationDelegate::GetGrayscaleForAnimation() const { 82 float TestLayerAnimationDelegate::GetGrayscaleForAnimation() const {
84 return grayscale_; 83 return grayscale_;
85 } 84 }
86 85
87 SkColor TestLayerAnimationDelegate::GetColorForAnimation() const { 86 SkColor TestLayerAnimationDelegate::GetColorForAnimation() const {
88 return color_; 87 return color_;
89 } 88 }
90 89
90 float TestLayerAnimationDelegate::GetDeviceScaleFactor() const {
91 return 1.0f;
92 }
93
91 void TestLayerAnimationDelegate::AddThreadedAnimation( 94 void TestLayerAnimationDelegate::AddThreadedAnimation(
92 scoped_ptr<cc::Animation> animation) { 95 scoped_ptr<cc::Animation> animation) {
93 } 96 }
94 97
95 void TestLayerAnimationDelegate::RemoveThreadedAnimation(int animation_id) { 98 void TestLayerAnimationDelegate::RemoveThreadedAnimation(int animation_id) {
96 } 99 }
97 100
98 } // namespace ui 101 } // namespace ui
OLDNEW
« 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