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

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

Issue 642983003: cc: Make PictureLayerImpl use a better choice for animated raster scale. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 162
163 bool FakeTransformTransition::AnimatedBoundsForBox(const gfx::BoxF& box, 163 bool FakeTransformTransition::AnimatedBoundsForBox(const gfx::BoxF& box,
164 gfx::BoxF* bounds) const { 164 gfx::BoxF* bounds) const {
165 return false; 165 return false;
166 } 166 }
167 167
168 bool FakeTransformTransition::AffectsScale() const { return false; } 168 bool FakeTransformTransition::AffectsScale() const { return false; }
169 169
170 bool FakeTransformTransition::IsTranslation() const { return true; } 170 bool FakeTransformTransition::IsTranslation() const { return true; }
171 171
172 bool FakeTransformTransition::MaximumScale(float* max_scale) const { 172 bool FakeTransformTransition::MaximumTargetScale(float* max_scale) const {
173 *max_scale = 1.f; 173 *max_scale = 1.f;
174 return true; 174 return true;
175 } 175 }
176 176
177 scoped_ptr<AnimationCurve> FakeTransformTransition::Clone() const { 177 scoped_ptr<AnimationCurve> FakeTransformTransition::Clone() const {
178 return make_scoped_ptr(new FakeTransformTransition(*this)); 178 return make_scoped_ptr(new FakeTransformTransition(*this));
179 } 179 }
180 180
181 181
182 FakeFloatTransition::FakeFloatTransition(double duration, float from, float to) 182 FakeFloatTransition::FakeFloatTransition(double duration, float from, float to)
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 double duration, 340 double duration,
341 float start_brightness, 341 float start_brightness,
342 float end_brightness) { 342 float end_brightness) {
343 return AddAnimatedFilter(layer->layer_animation_controller(), 343 return AddAnimatedFilter(layer->layer_animation_controller(),
344 duration, 344 duration,
345 start_brightness, 345 start_brightness,
346 end_brightness); 346 end_brightness);
347 } 347 }
348 348
349 } // namespace cc 349 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698