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

Side by Side Diff: cc/CCLayerTreeHostImplTest.cpp

Issue 11091028: [cc] Remove all WTF #includes from CCLayerTreeHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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/CCLayerTreeHostTest.cpp » ('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 "CCDelegatedRendererLayerImpl.h" 10 #include "CCDelegatedRendererLayerImpl.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 { 77 {
78 CCSettings::reset(); 78 CCSettings::reset();
79 } 79 }
80 80
81 virtual void didLoseContextOnImplThread() OVERRIDE { } 81 virtual void didLoseContextOnImplThread() OVERRIDE { }
82 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE { } 82 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE { }
83 virtual void onVSyncParametersChanged(double, double) OVERRIDE { } 83 virtual void onVSyncParametersChanged(double, double) OVERRIDE { }
84 virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE { m_onCanDrawState ChangedCalled = true; } 84 virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE { m_onCanDrawState ChangedCalled = true; }
85 virtual void setNeedsRedrawOnImplThread() OVERRIDE { m_didRequestRedraw = tr ue; } 85 virtual void setNeedsRedrawOnImplThread() OVERRIDE { m_didRequestRedraw = tr ue; }
86 virtual void setNeedsCommitOnImplThread() OVERRIDE { m_didRequestCommit = tr ue; } 86 virtual void setNeedsCommitOnImplThread() OVERRIDE { m_didRequestCommit = tr ue; }
87 virtual void postAnimationEventsToMainThreadOnImplThread(PassOwnPtr<CCAnimat ionEventsVector>, double wallClockTime) OVERRIDE { } 87 virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<CCAnimat ionEventsVector>, double wallClockTime) OVERRIDE { }
88 virtual void releaseContentsTexturesOnImplThread() OVERRIDE { } 88 virtual void releaseContentsTexturesOnImplThread() OVERRIDE { }
89 89
90 scoped_ptr<CCLayerTreeHostImpl> createLayerTreeHost(bool partialSwap, scoped _ptr<CCGraphicsContext> graphicsContext, PassOwnPtr<CCLayerImpl> rootPtr) 90 scoped_ptr<CCLayerTreeHostImpl> createLayerTreeHost(bool partialSwap, scoped _ptr<CCGraphicsContext> graphicsContext, PassOwnPtr<CCLayerImpl> rootPtr)
91 { 91 {
92 CCSettings::setPartialSwapEnabled(partialSwap); 92 CCSettings::setPartialSwapEnabled(partialSwap);
93 93
94 CCLayerTreeSettings settings; 94 CCLayerTreeSettings settings;
95 settings.minimumOcclusionTrackingSize = IntSize(); 95 settings.minimumOcclusionTrackingSize = IntSize();
96 96
97 scoped_ptr<CCLayerTreeHostImpl> myHostImpl = CCLayerTreeHostImpl::create (settings, this); 97 scoped_ptr<CCLayerTreeHostImpl> myHostImpl = CCLayerTreeHostImpl::create (settings, this);
(...skipping 4236 matching lines...) Expand 10 before | Expand all | Expand 10 after
4334 verifyRenderPassTestData(removeRenderPassesCases[testCaseIndex], testDat a); 4334 verifyRenderPassTestData(removeRenderPassesCases[testCaseIndex], testDat a);
4335 testCaseIndex++; 4335 testCaseIndex++;
4336 } 4336 }
4337 } 4337 }
4338 4338
4339 INSTANTIATE_TEST_CASE_P(CCLayerTreeHostImplTests, 4339 INSTANTIATE_TEST_CASE_P(CCLayerTreeHostImplTests,
4340 CCLayerTreeHostImplTest, 4340 CCLayerTreeHostImplTest,
4341 ::testing::Values(false, true)); 4341 ::testing::Values(false, true));
4342 4342
4343 } // namespace 4343 } // namespace
OLDNEW
« no previous file with comments | « cc/CCLayerTreeHostImpl.cpp ('k') | cc/CCLayerTreeHostTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698