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

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

Issue 2024953002: Move GL one-off initialization code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@split_x11
Patch Set: Delete GLInitializer class. 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/init/BUILD.gn ('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 baf2f9ca5e71fa435f2a14ead4f5be1ad9a1acf6..ed114628e1e68a016dae3f1d3b073f4aadc54270 100644
--- a/ui/gl/init/gl_factory.h
+++ b/ui/gl/init/gl_factory.h
@@ -8,6 +8,7 @@
#include "base/memory/ref_counted.h"
#include "ui/gfx/geometry/size.h"
#include "ui/gfx/native_widget_types.h"
+#include "ui/gl/gl_implementation.h"
#include "ui/gl/gpu_preference.h"
#include "ui/gl/init/gl_init_export.h"
@@ -22,6 +23,13 @@ namespace init {
// Initialize GL bindings.
GL_INIT_EXPORT bool InitializeGLOneOff();
+// 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);
+
// 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.
« no previous file with comments | « ui/gl/init/BUILD.gn ('k') | ui/gl/init/gl_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698