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

Side by Side Diff: ui/compositor/test/layer_animator_test_controller.cc

Issue 231133002: CC::Animations should use TimeTicks & TimeDelta to represent time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code changed as per review comments Created 6 years, 7 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/animation/animation.h" 5 #include "cc/animation/animation.h"
6 #include "ui/compositor/layer_animation_sequence.h" 6 #include "ui/compositor/layer_animation_sequence.h"
7 #include "ui/compositor/test/layer_animator_test_controller.h" 7 #include "ui/compositor/test/layer_animator_test_controller.h"
8 #include "ui/gfx/frame_time.h" 8 #include "ui/gfx/frame_time.h"
9 #include "ui/gfx/rect.h" 9 #include "ui/gfx/rect.h"
10 10
(...skipping 30 matching lines...) Expand all
41 continue; 41 continue;
42 42
43 LayerAnimationElement* element = sequence->CurrentElement(); 43 LayerAnimationElement* element = sequence->CurrentElement();
44 if (!(element->properties() & animatable_property)) 44 if (!(element->properties() & animatable_property))
45 continue; 45 continue;
46 46
47 if (!element->Started() || 47 if (!element->Started() ||
48 element->effective_start_time() != base::TimeTicks()) 48 element->effective_start_time() != base::TimeTicks())
49 continue; 49 continue;
50 50
51 animator_->OnThreadedAnimationStarted(cc::AnimationEvent( 51 animator_->OnThreadedAnimationStarted(
52 cc::AnimationEvent::Started, 52 cc::AnimationEvent(cc::AnimationEvent::Started,
53 0, 53 0,
54 element->animation_group_id(), 54 element->animation_group_id(),
55 threaded_properties[i], 55 threaded_properties[i],
56 (gfx::FrameTime::Now() - base::TimeTicks()).InSecondsF())); 56 gfx::FrameTime::Now()));
57 } 57 }
58 } 58 }
59 59
60 } // namespace ui 60 } // namespace ui
OLDNEW
« no previous file with comments | « ui/compositor/layer_animator_unittest.cc ('k') | webkit/renderer/compositor_bindings/web_animation_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698