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

Unified Diff: ui/gl/gl_surface.h

Issue 135213003: Ensure GL initialization only happens once, and provide common init path (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: initgl: Created 6 years, 11 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: ui/gl/gl_surface.h
diff --git a/ui/gl/gl_surface.h b/ui/gl/gl_surface.h
index 8eaf60dab28c5c4d2db1bf12c17d27cd0a955c53..99052a90588708c7c626384ef0af2b9879cfeaed 100644
--- a/ui/gl/gl_surface.h
+++ b/ui/gl/gl_surface.h
@@ -70,6 +70,9 @@ class GL_EXPORT GLSurface : public base::RefCounted<GLSurface> {
virtual bool PostSubBuffer(int x, int y, int width, int height);
static bool InitializeOneOff();
+ static void InitializeOneOffForTests();
+ static void InitializeOneOffWithMockBindingsForTests();
+ static void InitializeDynamicMockBindingsForTests(GLContext* context);
// Called after a context is made current with this surface. Returns false
// on error.

Powered by Google App Engine
This is Rietveld 408576698