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

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

Issue 1944623002: CC Animation: Use ElementId to attach CC animation players. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@erasedomids
Patch Set: Let CC clients generate their own ElementIds locally. Created 4 years, 7 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
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 void PostSetNeedsRedrawToMainThread(); 86 void PostSetNeedsRedrawToMainThread();
87 void PostSetNeedsRedrawRectToMainThread(const gfx::Rect& damage_rect); 87 void PostSetNeedsRedrawRectToMainThread(const gfx::Rect& damage_rect);
88 void PostSetVisibleToMainThread(bool visible); 88 void PostSetVisibleToMainThread(bool visible);
89 void PostSetNextCommitForcesRedrawToMainThread(); 89 void PostSetNextCommitForcesRedrawToMainThread();
90 void PostCompositeImmediatelyToMainThread(); 90 void PostCompositeImmediatelyToMainThread();
91 void PostNextCommitWaitsForActivationToMainThread(); 91 void PostNextCommitWaitsForActivationToMainThread();
92 92
93 void DoBeginTest(); 93 void DoBeginTest();
94 void Timeout(); 94 void Timeout();
95 95
96 scoped_refptr<Layer> CreateTestLayer();
97
96 protected: 98 protected:
97 LayerTreeTest(); 99 LayerTreeTest();
98 100
99 virtual void InitializeSettings(LayerTreeSettings* settings) {} 101 virtual void InitializeSettings(LayerTreeSettings* settings) {}
100 102
101 void RealEndTest(); 103 void RealEndTest();
102 104
103 virtual void DispatchAddAnimationToPlayer( 105 virtual void DispatchAddAnimationToPlayer(
104 AnimationPlayer* player_to_receive_animation, 106 AnimationPlayer* player_to_receive_animation,
105 double animation_duration); 107 double animation_duration);
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 #define SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \ 273 #define SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \
272 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ 274 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \
273 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) 275 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME)
274 276
275 // Some tests want to control when notify ready for activation occurs, 277 // Some tests want to control when notify ready for activation occurs,
276 // but this is not supported in the single-threaded case. 278 // but this is not supported in the single-threaded case.
277 #define MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ 279 #define MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \
278 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) 280 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME)
279 281
280 #endif // CC_TEST_LAYER_TREE_TEST_H_ 282 #endif // CC_TEST_LAYER_TREE_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698