| 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 #include "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "CCLayerTreeHostImpl.h" | 7 #include "CCLayerTreeHostImpl.h" |
| 8 | 8 |
| 9 #include "CCAnimationTestCommon.h" | 9 #include "CCAnimationTestCommon.h" |
| 10 #include "CCDelegatedRendererLayerImpl.h" | 10 #include "CCDelegatedRendererLayerImpl.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 m_hostImpl->initializeRenderer(createContext()); | 64 m_hostImpl->initializeRenderer(createContext()); |
| 65 m_hostImpl->setViewportSize(IntSize(10, 10), IntSize(10, 10)); | 65 m_hostImpl->setViewportSize(IntSize(10, 10), IntSize(10, 10)); |
| 66 } | 66 } |
| 67 | 67 |
| 68 virtual void didLoseContextOnImplThread() OVERRIDE { } | 68 virtual void didLoseContextOnImplThread() OVERRIDE { } |
| 69 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE { } | 69 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE { } |
| 70 virtual void onVSyncParametersChanged(double, double) OVERRIDE { } | 70 virtual void onVSyncParametersChanged(double, double) OVERRIDE { } |
| 71 virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE { m_onCanDrawState
ChangedCalled = true; } | 71 virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE { m_onCanDrawState
ChangedCalled = true; } |
| 72 virtual void setNeedsRedrawOnImplThread() OVERRIDE { m_didRequestRedraw = tr
ue; } | 72 virtual void setNeedsRedrawOnImplThread() OVERRIDE { m_didRequestRedraw = tr
ue; } |
| 73 virtual void setNeedsCommitOnImplThread() OVERRIDE { m_didRequestCommit = tr
ue; } | 73 virtual void setNeedsCommitOnImplThread() OVERRIDE { m_didRequestCommit = tr
ue; } |
| 74 virtual void postAnimationEventsToMainThreadOnImplThread(PassOwnPtr<CCAnimat
ionEventsVector>, double wallClockTime) OVERRIDE { } | 74 virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<CCAnimat
ionEventsVector>, double wallClockTime) OVERRIDE { } |
| 75 virtual void releaseContentsTexturesOnImplThread() OVERRIDE { } | 75 virtual void releaseContentsTexturesOnImplThread() OVERRIDE { } |
| 76 | 76 |
| 77 scoped_ptr<CCLayerTreeHostImpl> createLayerTreeHost(bool partialSwap, scoped
_ptr<CCGraphicsContext> graphicsContext, PassOwnPtr<CCLayerImpl> rootPtr) | 77 scoped_ptr<CCLayerTreeHostImpl> createLayerTreeHost(bool partialSwap, scoped
_ptr<CCGraphicsContext> graphicsContext, PassOwnPtr<CCLayerImpl> rootPtr) |
| 78 { | 78 { |
| 79 CCSettings::setPartialSwapEnabled(partialSwap); | 79 CCSettings::setPartialSwapEnabled(partialSwap); |
| 80 | 80 |
| 81 CCLayerTreeSettings settings; | 81 CCLayerTreeSettings settings; |
| 82 settings.minimumOcclusionTrackingSize = IntSize(); | 82 settings.minimumOcclusionTrackingSize = IntSize(); |
| 83 | 83 |
| 84 scoped_ptr<CCLayerTreeHostImpl> myHostImpl = CCLayerTreeHostImpl::create
(settings, this); | 84 scoped_ptr<CCLayerTreeHostImpl> myHostImpl = CCLayerTreeHostImpl::create
(settings, this); |
| (...skipping 4130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4215 while (removeRenderPassesCases[testCaseIndex].name) { | 4215 while (removeRenderPassesCases[testCaseIndex].name) { |
| 4216 RenderPassRemovalTestData testData; | 4216 RenderPassRemovalTestData testData; |
| 4217 configureRenderPassTestData(removeRenderPassesCases[testCaseIndex].initS
cript, testData, renderer.get()); | 4217 configureRenderPassTestData(removeRenderPassesCases[testCaseIndex].initS
cript, testData, renderer.get()); |
| 4218 CCLayerTreeHostImpl::removeRenderPasses(CCLayerTreeHostImpl::CullRenderP
assesWithCachedTextures(*renderer), testData); | 4218 CCLayerTreeHostImpl::removeRenderPasses(CCLayerTreeHostImpl::CullRenderP
assesWithCachedTextures(*renderer), testData); |
| 4219 verifyRenderPassTestData(removeRenderPassesCases[testCaseIndex], testDat
a); | 4219 verifyRenderPassTestData(removeRenderPassesCases[testCaseIndex], testDat
a); |
| 4220 testCaseIndex++; | 4220 testCaseIndex++; |
| 4221 } | 4221 } |
| 4222 } | 4222 } |
| 4223 | 4223 |
| 4224 } // namespace | 4224 } // namespace |
| OLD | NEW |