Index: content/renderer/renderer_webkitplatformsupport_impl.cc |
diff --git a/content/renderer/renderer_webkitplatformsupport_impl.cc b/content/renderer/renderer_webkitplatformsupport_impl.cc |
index c7fa2715a59a8d381cb6f46b65fda3da8b67d219..0848eeb98d4db42e894766736d1908c705d8cecd 100644 |
--- a/content/renderer/renderer_webkitplatformsupport_impl.cc |
+++ b/content/renderer/renderer_webkitplatformsupport_impl.cc |
@@ -935,9 +935,16 @@ bool RendererWebKitPlatformSupportImpl::processMemorySizesInBytes( |
//------------------------------------------------------------------------------ |
+ |
blink::WebGraphicsContext3D* |
RendererWebKitPlatformSupportImpl::createOffscreenGraphicsContext3D( |
+#ifdef ENABLE_EXPLICIT_GL_SHARE_GROUPS |
+ const blink::WebGraphicsContext3D::Attributes& attributes, |
+ blink::WebGraphicsContext3D* share_context) { |
+#else |
const blink::WebGraphicsContext3D::Attributes& attributes) { |
+ blink::WebGraphicsContext3D* share_context = NULL; |
+#endif |
if (!RenderThreadImpl::current()) |
return NULL; |
@@ -961,7 +968,8 @@ RendererWebKitPlatformSupportImpl::createOffscreenGraphicsContext3D( |
gpu_channel_host.get(), |
attributes, |
GURL(attributes.topDocumentURL), |
- limits); |
+ limits, |
+ static_cast<WebGraphicsContext3DCommandBufferImpl*>(share_context)); |
} |
//------------------------------------------------------------------------------ |