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

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

Issue 653563003: cc: Plumb group id through animation creation and start/finish notifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/layers/layer_impl.cc ('k') | cc/trees/layer_tree_host_unittest_animation.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_LAYER_TREE_TEST_H_ 5 #ifndef CC_TEST_LAYER_TREE_TEST_H_
6 #define CC_TEST_LAYER_TREE_TEST_H_ 6 #define CC_TEST_LAYER_TREE_TEST_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/threading/thread.h" 9 #include "base/threading/thread.h"
10 #include "cc/animation/animation_delegate.h" 10 #include "cc/animation/animation_delegate.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // Hooks for SchedulerClient. 84 // Hooks for SchedulerClient.
85 virtual void ScheduledActionWillSendBeginMainFrame() {} 85 virtual void ScheduledActionWillSendBeginMainFrame() {}
86 virtual void ScheduledActionSendBeginMainFrame() {} 86 virtual void ScheduledActionSendBeginMainFrame() {}
87 virtual void ScheduledActionDrawAndSwapIfPossible() {} 87 virtual void ScheduledActionDrawAndSwapIfPossible() {}
88 virtual void ScheduledActionAnimate() {} 88 virtual void ScheduledActionAnimate() {}
89 virtual void ScheduledActionCommit() {} 89 virtual void ScheduledActionCommit() {}
90 virtual void ScheduledActionBeginOutputSurfaceCreation() {} 90 virtual void ScheduledActionBeginOutputSurfaceCreation() {}
91 91
92 // Implementation of AnimationDelegate: 92 // Implementation of AnimationDelegate:
93 virtual void NotifyAnimationStarted(base::TimeTicks monotonic_time, 93 virtual void NotifyAnimationStarted(base::TimeTicks monotonic_time,
94 Animation::TargetProperty target_property) 94 Animation::TargetProperty target_property,
95 override {} 95 int group) override {}
96 virtual void NotifyAnimationFinished( 96 virtual void NotifyAnimationFinished(
97 base::TimeTicks monotonic_time, 97 base::TimeTicks monotonic_time,
98 Animation::TargetProperty target_property) override {} 98 Animation::TargetProperty target_property,
99 int group) override {}
99 100
100 virtual void RequestNewOutputSurface(bool fallback) = 0; 101 virtual void RequestNewOutputSurface(bool fallback) = 0;
101 }; 102 };
102 103
103 class BeginTask; 104 class BeginTask;
104 class LayerTreeHostClientForTesting; 105 class LayerTreeHostClientForTesting;
105 class TimeoutTask; 106 class TimeoutTask;
106 107
107 // The LayerTreeTests runs with the main loop running. It instantiates a single 108 // The LayerTreeTests runs with the main loop running. It instantiates a single
108 // LayerTreeHostForTesting and associated LayerTreeHostImplForTesting and 109 // LayerTreeHostForTesting and associated LayerTreeHostImplForTesting and
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ 320 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \
320 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) 321 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME)
321 322
322 // Some tests want to control when notify ready for activation occurs, 323 // Some tests want to control when notify ready for activation occurs,
323 // but this is not supported in the single-threaded case. 324 // but this is not supported in the single-threaded case.
324 #define SINGLE_AND_MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ 325 #define SINGLE_AND_MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \
325 SINGLE_THREAD_NOIMPL_TEST_F(TEST_FIXTURE_NAME); \ 326 SINGLE_THREAD_NOIMPL_TEST_F(TEST_FIXTURE_NAME); \
326 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) 327 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME)
327 328
328 #endif // CC_TEST_LAYER_TREE_TEST_H_ 329 #endif // CC_TEST_LAYER_TREE_TEST_H_
OLDNEW
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/trees/layer_tree_host_unittest_animation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698