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

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: Refactored syncing based on piman@'s feedback Created 6 years, 9 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 b3f219d621d47dc91e7e5b4e14971be466f5677c..8b987660c308f69a79a736761c6f055780e59651 100644
--- a/public/platform/Platform.h
+++ b/public/platform/Platform.h
@@ -559,7 +559,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; }
+#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