| 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 "CCGeometryTestUtils.h" | 10 #include "CCGeometryTestUtils.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 m_hostImpl->setViewportSize(IntSize(10, 10), IntSize(10, 10)); | 62 m_hostImpl->setViewportSize(IntSize(10, 10), IntSize(10, 10)); |
| 63 } | 63 } |
| 64 | 64 |
| 65 virtual void didLoseContextOnImplThread() OVERRIDE { } | 65 virtual void didLoseContextOnImplThread() OVERRIDE { } |
| 66 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE { } | 66 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE { } |
| 67 virtual void onVSyncParametersChanged(double, double) OVERRIDE { } | 67 virtual void onVSyncParametersChanged(double, double) OVERRIDE { } |
| 68 virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE { m_onCanDrawState
ChangedCalled = true; } | 68 virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE { m_onCanDrawState
ChangedCalled = true; } |
| 69 virtual void setNeedsRedrawOnImplThread() OVERRIDE { m_didRequestRedraw = tr
ue; } | 69 virtual void setNeedsRedrawOnImplThread() OVERRIDE { m_didRequestRedraw = tr
ue; } |
| 70 virtual void setNeedsCommitOnImplThread() OVERRIDE { m_didRequestCommit = tr
ue; } | 70 virtual void setNeedsCommitOnImplThread() OVERRIDE { m_didRequestCommit = tr
ue; } |
| 71 virtual void postAnimationEventsToMainThreadOnImplThread(PassOwnPtr<CCAnimat
ionEventsVector>, double wallClockTime) OVERRIDE { } | 71 virtual void postAnimationEventsToMainThreadOnImplThread(PassOwnPtr<CCAnimat
ionEventsVector>, double wallClockTime) OVERRIDE { } |
| 72 virtual void releaseContentsTexturesOnImplThread() OVERRIDE { } |
| 72 | 73 |
| 73 PassOwnPtr<CCLayerTreeHostImpl> createLayerTreeHost(bool partialSwap, PassOw
nPtr<CCGraphicsContext> graphicsContext, PassOwnPtr<CCLayerImpl> rootPtr) | 74 PassOwnPtr<CCLayerTreeHostImpl> createLayerTreeHost(bool partialSwap, PassOw
nPtr<CCGraphicsContext> graphicsContext, PassOwnPtr<CCLayerImpl> rootPtr) |
| 74 { | 75 { |
| 75 CCSettings::setPartialSwapEnabled(partialSwap); | 76 CCSettings::setPartialSwapEnabled(partialSwap); |
| 76 | 77 |
| 77 CCLayerTreeSettings settings; | 78 CCLayerTreeSettings settings; |
| 78 settings.minimumOcclusionTrackingSize = IntSize(); | 79 settings.minimumOcclusionTrackingSize = IntSize(); |
| 79 | 80 |
| 80 OwnPtr<CCLayerTreeHostImpl> myHostImpl = CCLayerTreeHostImpl::create(set
tings, this); | 81 OwnPtr<CCLayerTreeHostImpl> myHostImpl = CCLayerTreeHostImpl::create(set
tings, this); |
| 81 | 82 |
| (...skipping 4109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4191 while (removeRenderPassesCases[testCaseIndex].name) { | 4192 while (removeRenderPassesCases[testCaseIndex].name) { |
| 4192 RenderPassRemovalTestData testData; | 4193 RenderPassRemovalTestData testData; |
| 4193 configureRenderPassTestData(removeRenderPassesCases[testCaseIndex].initS
cript, testData, renderer.get()); | 4194 configureRenderPassTestData(removeRenderPassesCases[testCaseIndex].initS
cript, testData, renderer.get()); |
| 4194 CCLayerTreeHostImpl::removeRenderPasses(CCLayerTreeHostImpl::CullRenderP
assesWithCachedTextures(*renderer), testData); | 4195 CCLayerTreeHostImpl::removeRenderPasses(CCLayerTreeHostImpl::CullRenderP
assesWithCachedTextures(*renderer), testData); |
| 4195 verifyRenderPassTestData(removeRenderPassesCases[testCaseIndex], testDat
a); | 4196 verifyRenderPassTestData(removeRenderPassesCases[testCaseIndex], testDat
a); |
| 4196 testCaseIndex++; | 4197 testCaseIndex++; |
| 4197 } | 4198 } |
| 4198 } | 4199 } |
| 4199 | 4200 |
| 4200 } // namespace | 4201 } // namespace |
| OLD | NEW |