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

Side by Side Diff: cc/test/animation_test_common.cc

Issue 817653003: Update from https://crrev.com/309717 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « cc/test/animation_test_common.h ('k') | cc/test/fake_external_begin_frame_source.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "cc/test/animation_test_common.h" 5 #include "cc/test/animation_test_common.h"
6 6
7 #include "cc/animation/animation_id_provider.h" 7 #include "cc/animation/animation_id_provider.h"
8 #include "cc/animation/keyframed_animation_curve.h" 8 #include "cc/animation/keyframed_animation_curve.h"
9 #include "cc/animation/layer_animation_controller.h" 9 #include "cc/animation/layer_animation_controller.h"
10 #include "cc/animation/transform_operations.h" 10 #include "cc/animation/transform_operations.h"
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 167
168 bool FakeTransformTransition::AnimatedBoundsForBox(const gfx::BoxF& box, 168 bool FakeTransformTransition::AnimatedBoundsForBox(const gfx::BoxF& box,
169 gfx::BoxF* bounds) const { 169 gfx::BoxF* bounds) const {
170 return false; 170 return false;
171 } 171 }
172 172
173 bool FakeTransformTransition::AffectsScale() const { return false; } 173 bool FakeTransformTransition::AffectsScale() const { return false; }
174 174
175 bool FakeTransformTransition::IsTranslation() const { return true; } 175 bool FakeTransformTransition::IsTranslation() const { return true; }
176 176
177 bool FakeTransformTransition::PreservesAxisAlignment() const {
178 return true;
179 }
180
177 bool FakeTransformTransition::MaximumTargetScale(bool forward_direction, 181 bool FakeTransformTransition::MaximumTargetScale(bool forward_direction,
178 float* max_scale) const { 182 float* max_scale) const {
179 *max_scale = 1.f; 183 *max_scale = 1.f;
180 return true; 184 return true;
181 } 185 }
182 186
183 scoped_ptr<AnimationCurve> FakeTransformTransition::Clone() const { 187 scoped_ptr<AnimationCurve> FakeTransformTransition::Clone() const {
184 return make_scoped_ptr(new FakeTransformTransition(*this)); 188 return make_scoped_ptr(new FakeTransformTransition(*this));
185 } 189 }
186 190
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 double duration, 350 double duration,
347 float start_brightness, 351 float start_brightness,
348 float end_brightness) { 352 float end_brightness) {
349 return AddAnimatedFilter(layer->layer_animation_controller(), 353 return AddAnimatedFilter(layer->layer_animation_controller(),
350 duration, 354 duration,
351 start_brightness, 355 start_brightness,
352 end_brightness); 356 end_brightness);
353 } 357 }
354 358
355 } // namespace cc 359 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/animation_test_common.h ('k') | cc/test/fake_external_begin_frame_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698