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

Side by Side Diff: cc/test/animation_timelines_test_common.h

Issue 1734063003: Share animations from compositor to main thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: worked on review comments Created 4 years, 9 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef CC_TEST_ANIMATION_TIMELINES_TEST_COMMON_H_ 5 #ifndef CC_TEST_ANIMATION_TIMELINES_TEST_COMMON_H_
6 #define CC_TEST_ANIMATION_TIMELINES_TEST_COMMON_H_ 6 #define CC_TEST_ANIMATION_TIMELINES_TEST_COMMON_H_
7 7
8 #include <unordered_map> 8 #include <unordered_map>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 148
149 void NotifyAnimationStarted(base::TimeTicks monotonic_time, 149 void NotifyAnimationStarted(base::TimeTicks monotonic_time,
150 TargetProperty::Type target_property, 150 TargetProperty::Type target_property,
151 int group) override; 151 int group) override;
152 void NotifyAnimationFinished(base::TimeTicks monotonic_time, 152 void NotifyAnimationFinished(base::TimeTicks monotonic_time,
153 TargetProperty::Type target_property, 153 TargetProperty::Type target_property,
154 int group) override; 154 int group) override;
155 void NotifyAnimationAborted(base::TimeTicks monotonic_time, 155 void NotifyAnimationAborted(base::TimeTicks monotonic_time,
156 TargetProperty::Type target_property, 156 TargetProperty::Type target_property,
157 int group) override {} 157 int group) override {}
158 void NotifyAnimationTakeover(base::TimeTicks monotonic_time,
159 TargetProperty::Type target_property,
160 double animation_start_time,
161 scoped_ptr<AnimationCurve> curve) override {}
158 bool started_; 162 bool started_;
159 bool finished_; 163 bool finished_;
160 }; 164 };
161 165
162 class AnimationTimelinesTest : public testing::Test { 166 class AnimationTimelinesTest : public testing::Test {
163 public: 167 public:
164 AnimationTimelinesTest(); 168 AnimationTimelinesTest();
165 ~AnimationTimelinesTest() override; 169 ~AnimationTimelinesTest() override;
166 170
167 protected: 171 protected:
(...skipping 27 matching lines...) Expand all
195 scoped_refptr<AnimationTimeline> timeline_; 199 scoped_refptr<AnimationTimeline> timeline_;
196 scoped_refptr<AnimationPlayer> player_; 200 scoped_refptr<AnimationPlayer> player_;
197 201
198 scoped_refptr<AnimationTimeline> timeline_impl_; 202 scoped_refptr<AnimationTimeline> timeline_impl_;
199 scoped_refptr<AnimationPlayer> player_impl_; 203 scoped_refptr<AnimationPlayer> player_impl_;
200 }; 204 };
201 205
202 } // namespace cc 206 } // namespace cc
203 207
204 #endif // CC_TEST_ANIMATION_TIMELINES_TEST_COMMON_H_ 208 #endif // CC_TEST_ANIMATION_TIMELINES_TEST_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698