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

Side by Side Diff: cc/CCLayerTreeHostImplTest.cpp

Issue 10919320: Integrate r128344 and r128253 from WebKit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit test build break Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « cc/CCLayerTreeHostImpl.cpp ('k') | cc/CCPrioritizedTexture.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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
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
OLDNEW
« no previous file with comments | « cc/CCLayerTreeHostImpl.cpp ('k') | cc/CCPrioritizedTexture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698