| Index: Source/web/tests/DrawingBufferTest.cpp
|
| diff --git a/Source/web/tests/DrawingBufferTest.cpp b/Source/web/tests/DrawingBufferTest.cpp
|
| index 7669388b1bed5f8bbd8822f7f99ba291b8dd103b..40b9d031843fa37b312e863d5f031e65f5ea6661 100644
|
| --- a/Source/web/tests/DrawingBufferTest.cpp
|
| +++ b/Source/web/tests/DrawingBufferTest.cpp
|
| @@ -111,15 +111,16 @@ protected:
|
| virtual void SetUp()
|
| {
|
| RefPtr<FakeContextEvictionManager> contextEvictionManager = adoptRef(new FakeContextEvictionManager());
|
| - RefPtr<GraphicsContext3D> context = GraphicsContext3D::createGraphicsContextFromWebContext(adoptPtr(new WebGraphicsContext3DForTests));
|
| - m_drawingBuffer = DrawingBuffer::create(context.get(), IntSize(initialWidth, initialHeight), DrawingBuffer::Preserve, contextEvictionManager.release());
|
| + m_context = adoptPtr(new WebGraphicsContext3DForTests);
|
| + m_drawingBuffer = DrawingBuffer::create(m_context.get(), IntSize(initialWidth, initialHeight), DrawingBuffer::Preserve, contextEvictionManager.release());
|
| }
|
|
|
| WebGraphicsContext3DForTests* webContext()
|
| {
|
| - return static_cast<WebGraphicsContext3DForTests*>(m_drawingBuffer->context());
|
| + return m_context.get();
|
| }
|
|
|
| + OwnPtr<WebGraphicsContext3DForTests> m_context;
|
| RefPtr<DrawingBuffer> m_drawingBuffer;
|
| };
|
|
|
|
|