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

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

Issue 2261113002: CC Animation: Introduce some dirty flags to optimize PushProperties on commit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do not change SetNeedsCommit invalidation, leave it as-is. Created 4 years, 3 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/animation/scroll_offset_animations.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 <memory> 8 #include <memory>
9 #include <unordered_map> 9 #include <unordered_map>
10 10
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 void ReleaseRefPtrs(); 287 void ReleaseRefPtrs();
288 288
289 void AnimateLayersTransferEvents(base::TimeTicks time, 289 void AnimateLayersTransferEvents(base::TimeTicks time,
290 unsigned expect_events); 290 unsigned expect_events);
291 291
292 AnimationPlayer* GetPlayerForElementId(ElementId element_id); 292 AnimationPlayer* GetPlayerForElementId(ElementId element_id);
293 AnimationPlayer* GetImplPlayerForLayerId(ElementId element_id); 293 AnimationPlayer* GetImplPlayerForLayerId(ElementId element_id);
294 294
295 int NextTestLayerId(); 295 int NextTestLayerId();
296 296
297 bool CheckPlayerTimelineNeedsPushProperties(bool needs_push_properties) const;
298
297 TestHostClient client_; 299 TestHostClient client_;
298 TestHostClient client_impl_; 300 TestHostClient client_impl_;
299 301
300 AnimationHost* host_; 302 AnimationHost* host_;
301 AnimationHost* host_impl_; 303 AnimationHost* host_impl_;
302 304
303 const int timeline_id_; 305 const int timeline_id_;
304 const int player_id_; 306 const int player_id_;
305 ElementId element_id_; 307 ElementId element_id_;
306 308
307 int next_test_layer_id_; 309 int next_test_layer_id_;
308 310
309 scoped_refptr<AnimationTimeline> timeline_; 311 scoped_refptr<AnimationTimeline> timeline_;
310 scoped_refptr<AnimationPlayer> player_; 312 scoped_refptr<AnimationPlayer> player_;
311 313
312 scoped_refptr<AnimationTimeline> timeline_impl_; 314 scoped_refptr<AnimationTimeline> timeline_impl_;
313 scoped_refptr<AnimationPlayer> player_impl_; 315 scoped_refptr<AnimationPlayer> player_impl_;
314 }; 316 };
315 317
316 } // namespace cc 318 } // namespace cc
317 319
318 #endif // CC_TEST_ANIMATION_TIMELINES_TEST_COMMON_H_ 320 #endif // CC_TEST_ANIMATION_TIMELINES_TEST_COMMON_H_
OLDNEW
« no previous file with comments | « cc/animation/scroll_offset_animations.cc ('k') | cc/test/animation_timelines_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698