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

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

Issue 2099163003: Revert of Move static GL binding initialization to //ui/gl/init. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/gpu_timing_unittest.cc ('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..ed114628e1e68a016dae3f1d3b073f4aadc54270 100644
--- a/ui/gl/init/gl_factory.h
+++ b/ui/gl/init/gl_factory.h
@@ -20,33 +20,30 @@
namespace init {
-// Initializes GL bindings.
+// Initialize GL bindings.
GL_INIT_EXPORT bool InitializeGLOneOff();
-// Initializes GL bindings using the provided parameters. This might be required
+// Initialize GL bindings using the provided parameters. This might be required
// for use in tests, otherwise use InitializeGLOneOff() instead.
GL_INIT_EXPORT bool InitializeGLOneOffImplementation(GLImplementation impl,
bool fallback_to_osmesa,
bool gpu_service_logging,
bool disable_gl_drawing);
-// Clears GL bindings and resets GL implementation.
-GL_INIT_EXPORT void ClearGLBindings();
-
-// 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.
+// Create 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.
GL_INIT_EXPORT scoped_refptr<GLContext> CreateGLContext(
GLShareGroup* share_group,
GLSurface* compatible_surface,
GpuPreference gpu_preference);
-// Creates a GL surface that renders directly to a view.
+// Create a GL surface that renders directly to a view.
GL_INIT_EXPORT scoped_refptr<GLSurface> CreateViewGLSurface(
gfx::AcceleratedWidget window);
#if defined(USE_OZONE)
-// Creates a GL surface that renders directly into a window with surfaceless
+// Create a GL surface that renders directly into a window with surfaceless
// semantics - there is no default framebuffer and the primary surface must
// be presented as an overlay. If surfaceless mode is not supported or
// enabled it will return a null pointer.
@@ -54,7 +51,7 @@
gfx::AcceleratedWidget window);
#endif // defined(USE_OZONE)
-// Creates a GL surface used for offscreen rendering.
+// Create a GL surface used for offscreen rendering.
GL_INIT_EXPORT scoped_refptr<GLSurface> CreateOffscreenGLSurface(
const gfx::Size& size);
« no previous file with comments | « ui/gl/gpu_timing_unittest.cc ('k') | ui/gl/init/gl_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698