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

Unified Diff: public/platform/Platform.h

Issue 179973004: Share Group plumbing in Blink; Remove WebGL from default share group (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Changed nullptr to 0 Created 6 years, 10 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: public/platform/Platform.h
diff --git a/public/platform/Platform.h b/public/platform/Platform.h
index 40214beabcf07bb76d8bcb3a3070d9a825edfd95..e3e27f98e54c81a53e39fdbf721218dfcb31d3c7 100644
--- a/public/platform/Platform.h
+++ b/public/platform/Platform.h
@@ -552,7 +552,11 @@ public:
//
// May return null if GPU is not supported.
// Returns newly allocated and initialized offscreen WebGraphicsContext3D instance.
+#ifdef ENABLE_EXPLICIT_GL_SHARE_GROUPS
+ virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGraphicsContext3D::Attributes&, WebGraphicsContext3D* share_context) { return 0; }
+#else
virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGraphicsContext3D::Attributes&) { return 0; }
Zhenyao Mo 2014/03/03 18:39:49 I think getting rid of the other signature (the on
bajones 2014/03/03 18:48:27 The idea is to get rid of it, but it can't be remo
+#endif
// Returns a newly allocated and initialized offscreen context provider. The provider may return a null
// graphics context if GPU is not supported.

Powered by Google App Engine
This is Rietveld 408576698