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

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

Issue 60513007: Add SwapPromise support to LayerTreeHost and LayerTreeImpl (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: add OVERRIDE to TestSwapPromise::DidNotSwap Created 7 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/cc.gyp ('k') | cc/test/layer_tree_test.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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 virtual void BeginTest() = 0; 107 virtual void BeginTest() = 0;
108 virtual void SetupTree(); 108 virtual void SetupTree();
109 109
110 virtual void EndTest(); 110 virtual void EndTest();
111 void EndTestAfterDelay(int delay_milliseconds); 111 void EndTestAfterDelay(int delay_milliseconds);
112 112
113 void PostAddAnimationToMainThread(Layer* layer_to_receive_animation); 113 void PostAddAnimationToMainThread(Layer* layer_to_receive_animation);
114 void PostAddInstantAnimationToMainThread(Layer* layer_to_receive_animation); 114 void PostAddInstantAnimationToMainThread(Layer* layer_to_receive_animation);
115 void PostAddLongAnimationToMainThread(Layer* layer_to_receive_animation); 115 void PostAddLongAnimationToMainThread(Layer* layer_to_receive_animation);
116 void PostSetNeedsCommitToMainThread(); 116 void PostSetNeedsCommitToMainThread();
117 void PostSetNeedsUpdateLayersToMainThread();
117 void PostReadbackToMainThread(); 118 void PostReadbackToMainThread();
118 void PostAcquireLayerTextures(); 119 void PostAcquireLayerTextures();
119 void PostSetNeedsRedrawToMainThread(); 120 void PostSetNeedsRedrawToMainThread();
120 void PostSetNeedsRedrawRectToMainThread(gfx::Rect damage_rect); 121 void PostSetNeedsRedrawRectToMainThread(gfx::Rect damage_rect);
121 void PostSetVisibleToMainThread(bool visible); 122 void PostSetVisibleToMainThread(bool visible);
122 void PostSetNextCommitForcesRedrawToMainThread(); 123 void PostSetNextCommitForcesRedrawToMainThread();
123 124
124 void DoBeginTest(); 125 void DoBeginTest();
125 void Timeout(); 126 void Timeout();
126 127
127 protected: 128 protected:
128 LayerTreeTest(); 129 LayerTreeTest();
129 130
130 virtual void InitializeSettings(LayerTreeSettings* settings) {} 131 virtual void InitializeSettings(LayerTreeSettings* settings) {}
131 132
132 virtual void ScheduleComposite() OVERRIDE; 133 virtual void ScheduleComposite() OVERRIDE;
133 134
134 void RealEndTest(); 135 void RealEndTest();
135 136
136 virtual void DispatchAddAnimation(Layer* layer_to_receive_animation, 137 virtual void DispatchAddAnimation(Layer* layer_to_receive_animation,
137 double animation_duration); 138 double animation_duration);
138 void DispatchSetNeedsCommit(); 139 void DispatchSetNeedsCommit();
140 void DispatchSetNeedsUpdateLayers();
139 void DispatchReadback(); 141 void DispatchReadback();
140 void DispatchAcquireLayerTextures(); 142 void DispatchAcquireLayerTextures();
141 void DispatchSetNeedsRedraw(); 143 void DispatchSetNeedsRedraw();
142 void DispatchSetNeedsRedrawRect(gfx::Rect damage_rect); 144 void DispatchSetNeedsRedrawRect(gfx::Rect damage_rect);
143 void DispatchSetVisible(bool visible); 145 void DispatchSetVisible(bool visible);
144 void DispatchSetNextCommitForcesRedraw(); 146 void DispatchSetNextCommitForcesRedraw();
145 void DispatchComposite(); 147 void DispatchComposite();
146 void DispatchDidAddAnimation(); 148 void DispatchDidAddAnimation();
147 149
148 virtual void RunTest(bool threaded, 150 virtual void RunTest(bool threaded,
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 271
270 #define SINGLE_AND_MULTI_THREAD_NOIMPL_TEST_F(TEST_FIXTURE_NAME) \ 272 #define SINGLE_AND_MULTI_THREAD_NOIMPL_TEST_F(TEST_FIXTURE_NAME) \
271 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_NOIMPL_TEST_F(TEST_FIXTURE_NAME); \ 273 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_NOIMPL_TEST_F(TEST_FIXTURE_NAME); \
272 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_NOIMPL_TEST_F(TEST_FIXTURE_NAME) 274 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_NOIMPL_TEST_F(TEST_FIXTURE_NAME)
273 275
274 #define SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \ 276 #define SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \
275 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ 277 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \
276 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) 278 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME)
277 279
278 #endif // CC_TEST_LAYER_TREE_TEST_H_ 280 #endif // CC_TEST_LAYER_TREE_TEST_H_
OLDNEW
« no previous file with comments | « cc/cc.gyp ('k') | cc/test/layer_tree_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698