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

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

Issue 2857363004: Add buffer_to_texture_target_map to LayerTreeSettings (Closed)
Patch Set: Cleanup Created 3 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 void DoBeginTest(); 89 void DoBeginTest();
90 void Timeout(); 90 void Timeout();
91 91
92 AnimationHost* animation_host() const { return animation_host_.get(); } 92 AnimationHost* animation_host() const { return animation_host_.get(); }
93 93
94 protected: 94 protected:
95 LayerTreeTest(); 95 LayerTreeTest();
96 96
97 virtual void InitializeSettings(LayerTreeSettings* settings) {} 97 virtual void InitializeSettings(LayerTreeSettings* settings) {}
98 virtual void InitializeRendererSettings(RendererSettings* renderer_settings);
98 99
99 void RealEndTest(); 100 void RealEndTest();
100 101
101 std::unique_ptr<CompositorFrameSink> 102 std::unique_ptr<CompositorFrameSink>
102 ReleaseCompositorFrameSinkOnLayerTreeHost(); 103 ReleaseCompositorFrameSinkOnLayerTreeHost();
103 void SetVisibleOnLayerTreeHost(bool visible); 104 void SetVisibleOnLayerTreeHost(bool visible);
104 105
105 virtual void AfterTest() = 0; 106 virtual void AfterTest() = 0;
106 virtual void WillBeginTest(); 107 virtual void WillBeginTest();
107 virtual void BeginTest() = 0; 108 virtual void BeginTest() = 0;
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 #define REMOTE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \ 225 #define REMOTE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \
225 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME); \ 226 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME); \
226 REMOTE_TEST_F(TEST_FIXTURE_NAME) 227 REMOTE_TEST_F(TEST_FIXTURE_NAME)
227 228
228 // Some tests want to control when notify ready for activation occurs, 229 // Some tests want to control when notify ready for activation occurs,
229 // but this is not supported in the single-threaded case. 230 // but this is not supported in the single-threaded case.
230 #define MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ 231 #define MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \
231 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) 232 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME)
232 233
233 #endif // CC_TEST_LAYER_TREE_TEST_H_ 234 #endif // CC_TEST_LAYER_TREE_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698