| 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 CCThreadedTest_h | 5 #ifndef CCThreadedTest_h |
| 6 #define CCThreadedTest_h | 6 #define CCThreadedTest_h |
| 7 | 7 |
| 8 #include "CCLayerTreeHost.h" | 8 #include "CCLayerTreeHost.h" |
| 9 #include "CCLayerTreeHostImpl.h" | 9 #include "CCLayerTreeHostImpl.h" |
| 10 #include "CCScopedThreadProxy.h" | 10 #include "CCScopedThreadProxy.h" |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 virtual void commitComplete(); | 149 virtual void commitComplete(); |
| 150 virtual bool prepareToDraw(FrameData&); | 150 virtual bool prepareToDraw(FrameData&); |
| 151 virtual void drawLayers(const FrameData&); | 151 virtual void drawLayers(const FrameData&); |
| 152 | 152 |
| 153 // Make these public. | 153 // Make these public. |
| 154 typedef Vector<cc::CCLayerImpl*> CCLayerList; | 154 typedef Vector<cc::CCLayerImpl*> CCLayerList; |
| 155 using CCLayerTreeHostImpl::calculateRenderSurfaceLayerList; | 155 using CCLayerTreeHostImpl::calculateRenderSurfaceLayerList; |
| 156 | 156 |
| 157 protected: | 157 protected: |
| 158 virtual void animateLayers(double monotonicTime, double wallClockTime); | 158 virtual void animateLayers(double monotonicTime, double wallClockTime); |
| 159 virtual double lowFrequencyAnimationInterval() const; | 159 virtual base::TimeDelta lowFrequencyAnimationInterval() const; |
| 160 | 160 |
| 161 private: | 161 private: |
| 162 MockLayerTreeHostImpl(TestHooks*, const cc::CCLayerTreeSettings&, cc::CCLaye
rTreeHostImplClient*); | 162 MockLayerTreeHostImpl(TestHooks*, const cc::CCLayerTreeSettings&, cc::CCLaye
rTreeHostImplClient*); |
| 163 | 163 |
| 164 TestHooks* m_testHooks; | 164 TestHooks* m_testHooks; |
| 165 }; | 165 }; |
| 166 | 166 |
| 167 class CompositorFakeWebGraphicsContext3DWithTextureTracking : public WebKit::Com
positorFakeWebGraphicsContext3D { | 167 class CompositorFakeWebGraphicsContext3DWithTextureTracking : public WebKit::Com
positorFakeWebGraphicsContext3D { |
| 168 public: | 168 public: |
| 169 static PassOwnPtr<CompositorFakeWebGraphicsContext3DWithTextureTracking> cre
ate(Attributes); | 169 static PassOwnPtr<CompositorFakeWebGraphicsContext3DWithTextureTracking> cre
ate(Attributes); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 195 TEST_F(TEST_FIXTURE_NAME, runSingleThread) \ | 195 TEST_F(TEST_FIXTURE_NAME, runSingleThread) \ |
| 196 { \ | 196 { \ |
| 197 runTest(false); \ | 197 runTest(false); \ |
| 198 } \ | 198 } \ |
| 199 TEST_F(TEST_FIXTURE_NAME, runMultiThread) \ | 199 TEST_F(TEST_FIXTURE_NAME, runMultiThread) \ |
| 200 { \ | 200 { \ |
| 201 runTest(true); \ | 201 runTest(true); \ |
| 202 } | 202 } |
| 203 | 203 |
| 204 #endif // CCThreadedTest_h | 204 #endif // CCThreadedTest_h |
| OLD | NEW |