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

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

Issue 2480373002: Refactor context creation parameters into a struct. (Closed)
Patch Set: address piman's comments Created 4 years, 1 month 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/init/gl_factory.h
diff --git a/ui/gl/init/gl_factory.h b/ui/gl/init/gl_factory.h
index 37542fb917616ceba8284d407bcb4a7d667ef2ef..be8b2441c46e65604ece9b0d7cd7affff69b62d8 100644
--- a/ui/gl/init/gl_factory.h
+++ b/ui/gl/init/gl_factory.h
@@ -17,6 +17,7 @@
namespace gl {
class GLContext;
+struct GLContextAttribs;
class GLShareGroup;
class GLSurface;
@@ -50,7 +51,7 @@ GL_INIT_EXPORT bool GetGLWindowSystemBindingInfo(
GL_INIT_EXPORT scoped_refptr<GLContext> CreateGLContext(
GLShareGroup* share_group,
GLSurface* compatible_surface,
- GpuPreference gpu_preference);
+ const GLContextAttribs& attribs);
// Creates a GL surface that renders directly to a view.
GL_INIT_EXPORT scoped_refptr<GLSurface> CreateViewGLSurface(

Powered by Google App Engine
This is Rietveld 408576698