| Index: Source/WebKit/chromium/tests/Canvas2DLayerManagerTest.cpp
|
| diff --git a/Source/WebKit/chromium/tests/Canvas2DLayerManagerTest.cpp b/Source/WebKit/chromium/tests/Canvas2DLayerManagerTest.cpp
|
| index a5b2c71ef12e94369dbac82b7d87a985470f2c3e..4e9b7f9ae92cef381b4fb4a9b4cd06f6cd884188 100644
|
| --- a/Source/WebKit/chromium/tests/Canvas2DLayerManagerTest.cpp
|
| +++ b/Source/WebKit/chromium/tests/Canvas2DLayerManagerTest.cpp
|
| @@ -43,11 +43,13 @@ using testing::Test;
|
| class FakeCanvas2DLayerBridge : public Canvas2DLayerBridge {
|
| public:
|
| FakeCanvas2DLayerBridge(PassRefPtr<GraphicsContext3D> context, SkDeferredCanvas* canvas)
|
| - : Canvas2DLayerBridge(context, canvas, NonOpaque, SingleThread)
|
| + : Canvas2DLayerBridge(context, canvas)
|
| , m_freeableBytes(0)
|
| , m_freeMemoryIfPossibleCount(0)
|
| , m_flushCount(0)
|
| {
|
| + m_fakeSharedContext = m_context;
|
| + init(NonOpaque, SingleThread);
|
| }
|
|
|
| virtual size_t storageAllocatedForRecording() OVERRIDE
|
| @@ -81,10 +83,17 @@ public:
|
| m_flushCount++;
|
| }
|
|
|
| +protected:
|
| + virtual PassRefPtr<GraphicsContext3D> getSharedContext() const OVERRIDE
|
| + {
|
| + return m_fakeSharedContext;
|
| + }
|
| public:
|
| size_t m_freeableBytes;
|
| int m_freeMemoryIfPossibleCount;
|
| int m_flushCount;
|
| +private:
|
| + RefPtr<GraphicsContext3D> m_fakeSharedContext;
|
| };
|
|
|
| static PassOwnPtr<SkDeferredCanvas> createCanvas(GraphicsContext3D* context) {
|
|
|