Index: third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp |
index aac5c704343fc41443e40e17f9897671c8088344..9895364de873bfbe6836b6fb2c63ebcf8cb6d1b9 100644 |
--- a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp |
@@ -36,7 +36,6 @@ |
#include "platform/graphics/gpu/SharedContextRateLimiter.h" |
#include "public/platform/Platform.h" |
#include "public/platform/WebCompositorSupport.h" |
-#include "public/platform/WebGraphicsContext3D.h" |
#include "public/platform/WebGraphicsContext3DProvider.h" |
#include "public/platform/WebScheduler.h" |
#include "public/platform/WebTraceLocation.h" |
@@ -690,15 +689,6 @@ void Canvas2DLayerBridge::flushGpu() |
} |
-WebGraphicsContext3D* Canvas2DLayerBridge::context() |
-{ |
- // Check on m_layer is necessary because context() may be called during |
- // the destruction of m_layer |
- if (m_layer && !m_destructionInProgress) |
- checkSurfaceValid(); // To ensure rate limiter is disabled if context is lost. |
- return m_contextProvider ? m_contextProvider->context3d() : 0; |
-} |
- |
gpu::gles2::GLES2Interface* Canvas2DLayerBridge::contextGL() |
{ |
// Check on m_layer is necessary because contextGL() may be called during |