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

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

Issue 11491003: Revert 171714 - Use an auxiliary list of animation controllers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 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 | Annotate | Revision Log
« no previous file with comments | « cc/test/fake_proxy.h ('k') | cc/test/layer_tree_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 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_COMMON_H_ 5 #ifndef CC_TEST_LAYER_TREE_TEST_COMMON_H_
6 #define CC_TEST_LAYER_TREE_TEST_COMMON_H_ 6 #define CC_TEST_LAYER_TREE_TEST_COMMON_H_
7 7
8 #include "base/hash_tables.h" 8 #include "base/hash_tables.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 void endTest(); 77 void endTest();
78 void endTestAfterDelay(int delayMilliseconds); 78 void endTestAfterDelay(int delayMilliseconds);
79 79
80 void postSetNeedsAnimateToMainThread(); 80 void postSetNeedsAnimateToMainThread();
81 void postAddAnimationToMainThread(cc::Layer*); 81 void postAddAnimationToMainThread(cc::Layer*);
82 void postAddInstantAnimationToMainThread(); 82 void postAddInstantAnimationToMainThread();
83 void postSetNeedsCommitToMainThread(); 83 void postSetNeedsCommitToMainThread();
84 void postAcquireLayerTextures(); 84 void postAcquireLayerTextures();
85 void postSetNeedsRedrawToMainThread(); 85 void postSetNeedsRedrawToMainThread();
86 void postSetVisibleToMainThread(bool visible); 86 void postSetVisibleToMainThread(bool visible);
87 void postDidAddAnimationToMainThread();
87 88
88 void doBeginTest(); 89 void doBeginTest();
89 void timeout(); 90 void timeout();
90 91
91 cc::LayerTreeHost* layerTreeHost() { return m_layerTreeHost.get(); } 92 cc::LayerTreeHost* layerTreeHost() { return m_layerTreeHost.get(); }
92 93
93 protected: 94 protected:
94 ThreadedTest(); 95 ThreadedTest();
95 96
96 virtual void initializeSettings(cc::LayerTreeSettings&) { } 97 virtual void initializeSettings(cc::LayerTreeSettings&) { }
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 TEST_F(TEST_FIXTURE_NAME, runSingleThread) \ 199 TEST_F(TEST_FIXTURE_NAME, runSingleThread) \
199 { \ 200 { \
200 runTest(false); \ 201 runTest(false); \
201 } \ 202 } \
202 TEST_F(TEST_FIXTURE_NAME, runMultiThread) \ 203 TEST_F(TEST_FIXTURE_NAME, runMultiThread) \
203 { \ 204 { \
204 runTest(true); \ 205 runTest(true); \
205 } 206 }
206 207
207 #endif // CC_TEST_LAYER_TREE_TEST_COMMON_H_ 208 #endif // CC_TEST_LAYER_TREE_TEST_COMMON_H_
OLDNEW
« no previous file with comments | « cc/test/fake_proxy.h ('k') | cc/test/layer_tree_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698