OLD | NEW |
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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 public: | 145 public: |
146 static scoped_ptr<MockLayerTreeHostImpl> create(TestHooks*, const LayerTreeS
ettings&, LayerTreeHostImplClient*, Proxy*); | 146 static scoped_ptr<MockLayerTreeHostImpl> create(TestHooks*, const LayerTreeS
ettings&, LayerTreeHostImplClient*, Proxy*); |
147 | 147 |
148 virtual void beginCommit() OVERRIDE; | 148 virtual void beginCommit() OVERRIDE; |
149 virtual void commitComplete() OVERRIDE; | 149 virtual void commitComplete() OVERRIDE; |
150 virtual bool prepareToDraw(FrameData&) OVERRIDE; | 150 virtual bool prepareToDraw(FrameData&) OVERRIDE; |
151 virtual void drawLayers(FrameData&) OVERRIDE; | 151 virtual void drawLayers(FrameData&) OVERRIDE; |
152 | 152 |
153 // Make these public. | 153 // Make these public. |
154 typedef std::vector<LayerImpl*> LayerList; | 154 typedef std::vector<LayerImpl*> LayerList; |
155 using LayerTreeHostImpl::calculateRenderSurfaceLayerList; | |
156 | 155 |
157 protected: | 156 protected: |
158 virtual void animateLayers(base::TimeTicks monotonicTime, base::Time wallClo
ckTime) OVERRIDE; | 157 virtual void animateLayers(base::TimeTicks monotonicTime, base::Time wallClo
ckTime) OVERRIDE; |
159 virtual base::TimeDelta lowFrequencyAnimationInterval() const OVERRIDE; | 158 virtual base::TimeDelta lowFrequencyAnimationInterval() const OVERRIDE; |
160 | 159 |
161 private: | 160 private: |
162 MockLayerTreeHostImpl(TestHooks*, const LayerTreeSettings&, LayerTreeHostImp
lClient*, Proxy*); | 161 MockLayerTreeHostImpl(TestHooks*, const LayerTreeSettings&, LayerTreeHostImp
lClient*, Proxy*); |
163 | 162 |
164 TestHooks* m_testHooks; | 163 TestHooks* m_testHooks; |
165 }; | 164 }; |
(...skipping 30 matching lines...) Expand all Loading... |
196 TEST_F(TEST_FIXTURE_NAME, runSingleThread) \ | 195 TEST_F(TEST_FIXTURE_NAME, runSingleThread) \ |
197 { \ | 196 { \ |
198 runTest(false); \ | 197 runTest(false); \ |
199 } \ | 198 } \ |
200 TEST_F(TEST_FIXTURE_NAME, runMultiThread) \ | 199 TEST_F(TEST_FIXTURE_NAME, runMultiThread) \ |
201 { \ | 200 { \ |
202 runTest(true); \ | 201 runTest(true); \ |
203 } | 202 } |
204 | 203 |
205 #endif // CC_TEST_LAYER_TREE_TEST_COMMON_H_ | 204 #endif // CC_TEST_LAYER_TREE_TEST_COMMON_H_ |
OLD | NEW |