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

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

Issue 130443005: [#5] Pass gfx structs by const ref (gfx::Vector2dF) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporated the review comments Created 6 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/trees/layer_sorter.cc » ('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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 void FakeLayerAnimationValueObserver::OnOpacityAnimated(float opacity) { 193 void FakeLayerAnimationValueObserver::OnOpacityAnimated(float opacity) {
194 opacity_ = opacity; 194 opacity_ = opacity;
195 } 195 }
196 196
197 void FakeLayerAnimationValueObserver::OnTransformAnimated( 197 void FakeLayerAnimationValueObserver::OnTransformAnimated(
198 const gfx::Transform& transform) { 198 const gfx::Transform& transform) {
199 transform_ = transform; 199 transform_ = transform;
200 } 200 }
201 201
202 void FakeLayerAnimationValueObserver::OnScrollOffsetAnimated( 202 void FakeLayerAnimationValueObserver::OnScrollOffsetAnimated(
203 gfx::Vector2dF scroll_offset) { 203 const gfx::Vector2dF& scroll_offset) {
204 scroll_offset_ = scroll_offset; 204 scroll_offset_ = scroll_offset;
205 } 205 }
206 206
207 void FakeLayerAnimationValueObserver::OnAnimationWaitingForDeletion() { 207 void FakeLayerAnimationValueObserver::OnAnimationWaitingForDeletion() {
208 animation_waiting_for_deletion_ = true; 208 animation_waiting_for_deletion_ = true;
209 } 209 }
210 210
211 bool FakeLayerAnimationValueObserver::IsActive() const { 211 bool FakeLayerAnimationValueObserver::IsActive() const {
212 return true; 212 return true;
213 } 213 }
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 double duration, 308 double duration,
309 float start_brightness, 309 float start_brightness,
310 float end_brightness) { 310 float end_brightness) {
311 return AddAnimatedFilter(layer->layer_animation_controller(), 311 return AddAnimatedFilter(layer->layer_animation_controller(),
312 duration, 312 duration,
313 start_brightness, 313 start_brightness,
314 end_brightness); 314 end_brightness);
315 } 315 }
316 316
317 } // namespace cc 317 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/animation_test_common.h ('k') | cc/trees/layer_sorter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698