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

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

Issue 291843012: compositor: Tick the UI animations from cc, instead of from timer callbacks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ui/compositor/test/layer_animator_collection_test_controller.h"
6
7 #include "ui/compositor/layer_animator.h"
8
9 namespace ui {
10
11 LayerAnimatorCollectionTestController::LayerAnimatorCollectionTestController(
12 LayerAnimatorCollection* collection)
13 : collection_(collection) {
14 CHECK(collection_);
15 }
16
17 LayerAnimatorCollectionTestController::
18 ~LayerAnimatorCollectionTestController() {
19 }
20
21 void LayerAnimatorCollectionTestController::StopAllAnimators() {
22 std::set<scoped_refptr<LayerAnimator> > list = collection_->animators_;
23 for (std::set<scoped_refptr<LayerAnimator> >::iterator iter = list.begin();
24 iter != list.end();
25 ++iter) {
26 (*iter)->StopAnimating();
27 }
28 }
29
30 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698