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

Unified Diff: ui/gl/init/gl_factory.h

Issue 2189233003: Move last of platform dependent init from //ui/gl to //ui/gl/init. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix return values. Created 4 years, 5 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
« no previous file with comments | « ui/gl/gl_wgl_api_implementation.h ('k') | ui/gl/init/gl_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/init/gl_factory.h
diff --git a/ui/gl/init/gl_factory.h b/ui/gl/init/gl_factory.h
index 11646011bcd1de3a476837f1f5d97fad1c7dc335..003b56d8a28237228cef191cfc8998aeae82e7df 100644
--- a/ui/gl/init/gl_factory.h
+++ b/ui/gl/init/gl_factory.h
@@ -5,6 +5,8 @@
#ifndef UI_GL_INIT_GL_FACTORY_H_
#define UI_GL_INIT_GL_FACTORY_H_
+#include <vector>
+
#include "base/memory/ref_counted.h"
#include "ui/gfx/geometry/size.h"
#include "ui/gfx/native_widget_types.h"
@@ -20,6 +22,10 @@ class GLSurface;
namespace init {
+// Returns a list of allowed GL implementations. The default implementation will
+// be the first item.
+GL_INIT_EXPORT std::vector<GLImplementation> GetAllowedGLImplementations();
+
// Initializes GL bindings.
GL_INIT_EXPORT bool InitializeGLOneOff();
@@ -33,6 +39,11 @@ GL_INIT_EXPORT bool InitializeGLOneOffImplementation(GLImplementation impl,
// Clears GL bindings and resets GL implementation.
GL_INIT_EXPORT void ClearGLBindings();
+// Return information about the GL window system binding implementation (e.g.,
+// EGL, GLX, WGL). Returns true if the information was retrieved successfully.
+GL_INIT_EXPORT bool GetGLWindowSystemBindingInfo(
+ GLWindowSystemBindingInfo* info);
+
// Creates a GL context that is compatible with the given surface.
// |share_group|, if non-NULL, is a group of contexts which the internally
// created OpenGL context shares textures and other resources.
« no previous file with comments | « ui/gl/gl_wgl_api_implementation.h ('k') | ui/gl/init/gl_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698