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

Unified Diff: Source/web/tests/DrawingBufferTest.cpp

Issue 127493002: Removed most calls to GraphicsContext3D from DrawingBuffer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
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;
};

Powered by Google App Engine
This is Rietveld 408576698