Index: content/renderer/renderer_webkitplatformsupport_impl.cc |
diff --git a/content/renderer/renderer_webkitplatformsupport_impl.cc b/content/renderer/renderer_webkitplatformsupport_impl.cc |
index a92c3ae9616e954f0a2b6772e15e73153ae66e48..974fe501ff60bb026d7f5ee07851d60962e03321 100644 |
--- a/content/renderer/renderer_webkitplatformsupport_impl.cc |
+++ b/content/renderer/renderer_webkitplatformsupport_impl.cc |
@@ -933,9 +933,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; |
@@ -959,7 +966,8 @@ RendererWebKitPlatformSupportImpl::createOffscreenGraphicsContext3D( |
gpu_channel_host.get(), |
attributes, |
GURL(attributes.topDocumentURL), |
- limits); |
+ limits, |
+ static_cast<WebGraphicsContext3DCommandBufferImpl*>(share_context)); |
} |
//------------------------------------------------------------------------------ |