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

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

Issue 1539233002: CC Animations: Fix the case when main-thread player changes layer_id. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/animation/animation_player_unittest.cc ('k') | cc/test/animation_timelines_test_common.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 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 "base/containers/scoped_ptr_hash_map.h" 8 #include "base/containers/scoped_ptr_hash_map.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/animation/animation.h" 10 #include "cc/animation/animation.h"
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 void GetImplTimelineAndPlayerByID(); 167 void GetImplTimelineAndPlayerByID();
168 168
169 void ReleaseRefPtrs(); 169 void ReleaseRefPtrs();
170 170
171 void AnimateLayersTransferEvents(base::TimeTicks time, 171 void AnimateLayersTransferEvents(base::TimeTicks time,
172 unsigned expect_events); 172 unsigned expect_events);
173 173
174 AnimationPlayer* GetPlayerForLayerId(int layer_id); 174 AnimationPlayer* GetPlayerForLayerId(int layer_id);
175 AnimationPlayer* GetImplPlayerForLayerId(int layer_id); 175 AnimationPlayer* GetImplPlayerForLayerId(int layer_id);
176 176
177 int NextTestLayerId();
178
177 TestHostClient client_; 179 TestHostClient client_;
178 TestHostClient client_impl_; 180 TestHostClient client_impl_;
179 181
180 AnimationHost* host_; 182 AnimationHost* host_;
181 AnimationHost* host_impl_; 183 AnimationHost* host_impl_;
182 184
183 const int timeline_id_; 185 const int timeline_id_;
184 const int player_id_; 186 const int player_id_;
185 const int layer_id_; 187 int layer_id_;
188
189 int next_test_layer_id_;
186 190
187 scoped_refptr<AnimationTimeline> timeline_; 191 scoped_refptr<AnimationTimeline> timeline_;
188 scoped_refptr<AnimationPlayer> player_; 192 scoped_refptr<AnimationPlayer> player_;
189 193
190 scoped_refptr<AnimationTimeline> timeline_impl_; 194 scoped_refptr<AnimationTimeline> timeline_impl_;
191 scoped_refptr<AnimationPlayer> player_impl_; 195 scoped_refptr<AnimationPlayer> player_impl_;
192 }; 196 };
193 197
194 } // namespace cc 198 } // namespace cc
195 199
196 #endif // CC_TEST_ANIMATION_TIMELINES_TEST_COMMON_H_ 200 #endif // CC_TEST_ANIMATION_TIMELINES_TEST_COMMON_H_
OLDNEW
« no previous file with comments | « cc/animation/animation_player_unittest.cc ('k') | cc/test/animation_timelines_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698