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

Side by Side Diff: cc/CCDelegatedRendererLayerImplTest.cpp

Issue 11035071: [cc] Remove all WTF #includes from CCLayerTreeHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased 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/BitmapSkPictureCanvasLayerTextureUpdater.cpp ('k') | cc/CCLayerTreeHost.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 "CCDelegatedRendererLayerImpl.h" 7 #include "CCDelegatedRendererLayerImpl.h"
8 8
9 #include "CCAppendQuadsData.h" 9 #include "CCAppendQuadsData.h"
10 #include "CCGeometryTestUtils.h" 10 #include "CCGeometryTestUtils.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 m_hostImpl->setViewportSize(IntSize(10, 10), IntSize(10, 10)); 43 m_hostImpl->setViewportSize(IntSize(10, 10), IntSize(10, 10));
44 } 44 }
45 45
46 // CCLayerTreeHostImplClient implementation. 46 // CCLayerTreeHostImplClient implementation.
47 virtual void didLoseContextOnImplThread() OVERRIDE { } 47 virtual void didLoseContextOnImplThread() OVERRIDE { }
48 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE { } 48 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE { }
49 virtual void onVSyncParametersChanged(double, double) OVERRIDE { } 49 virtual void onVSyncParametersChanged(double, double) OVERRIDE { }
50 virtual void onCanDrawStateChanged(bool) OVERRIDE { } 50 virtual void onCanDrawStateChanged(bool) OVERRIDE { }
51 virtual void setNeedsRedrawOnImplThread() OVERRIDE { } 51 virtual void setNeedsRedrawOnImplThread() OVERRIDE { }
52 virtual void setNeedsCommitOnImplThread() OVERRIDE { } 52 virtual void setNeedsCommitOnImplThread() OVERRIDE { }
53 virtual void postAnimationEventsToMainThreadOnImplThread(PassOwnPtr<CCAnimat ionEventsVector>, double wallClockTime) OVERRIDE { } 53 virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<CCAnimat ionEventsVector>, double wallClockTime) OVERRIDE { }
54 virtual void releaseContentsTexturesOnImplThread() OVERRIDE { } 54 virtual void releaseContentsTexturesOnImplThread() OVERRIDE { }
55 55
56 protected: 56 protected:
57 scoped_ptr<CCGraphicsContext> createContext() 57 scoped_ptr<CCGraphicsContext> createContext()
58 { 58 {
59 return FakeWebCompositorOutputSurface::create(adoptPtr(new FakeWebGraphi csContext3D)).PassAs<CCGraphicsContext>(); 59 return FakeWebCompositorOutputSurface::create(adoptPtr(new FakeWebGraphi csContext3D)).PassAs<CCGraphicsContext>();
60 } 60 }
61 61
62 DebugScopedSetImplThread m_alwaysImplThread; 62 DebugScopedSetImplThread m_alwaysImplThread;
63 DebugScopedSetMainThreadBlocked m_alwaysMainThreadBlocked; 63 DebugScopedSetMainThreadBlocked m_alwaysMainThreadBlocked;
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 EXPECT_EQ(sharedState, quadList[3]->sharedQuadState()); 445 EXPECT_EQ(sharedState, quadList[3]->sharedQuadState());
446 446
447 // The state should be transformed only once. 447 // The state should be transformed only once.
448 EXPECT_RECT_EQ(IntRect(30, 30, 50, 50), sharedState->clippedRectInTarget); 448 EXPECT_RECT_EQ(IntRect(30, 30, 50, 50), sharedState->clippedRectInTarget);
449 WebTransformationMatrix expected; 449 WebTransformationMatrix expected;
450 expected.translate(30, 30); 450 expected.translate(30, 30);
451 EXPECT_TRANSFORMATION_MATRIX_EQ(expected, sharedState->quadTransform); 451 EXPECT_TRANSFORMATION_MATRIX_EQ(expected, sharedState->quadTransform);
452 } 452 }
453 453
454 } // namespace 454 } // namespace
OLDNEW
« no previous file with comments | « cc/BitmapSkPictureCanvasLayerTextureUpdater.cpp ('k') | cc/CCLayerTreeHost.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698