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

Unified Diff: ui/ozone/public/gl_ozone.h

Issue 2480373002: Refactor context creation parameters into a struct. (Closed)
Patch Set: 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
« ui/gl/gl_context_cgl.cc ('K') | « ui/ozone/platform/x11/gl_ozone_glx.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/public/gl_ozone.h
diff --git a/ui/ozone/public/gl_ozone.h b/ui/ozone/public/gl_ozone.h
index b6452fd78e9cbbfccccc817797eab445b7c1311c..d8fe074562d1553ee17fc564966533a82a9df544 100644
--- a/ui/ozone/public/gl_ozone.h
+++ b/ui/ozone/public/gl_ozone.h
@@ -15,6 +15,7 @@
namespace gl {
class GLContext;
+struct GLContextAttribs;
class GLShareGroup;
class GLSurface;
}
@@ -52,7 +53,7 @@ class OZONE_BASE_EXPORT GLOzone {
virtual scoped_refptr<gl::GLContext> CreateGLContext(
gl::GLShareGroup* share_group,
gl::GLSurface* compatible_surface,
- gl::GpuPreference gpu_preference) = 0;
+ const gl::GLContextAttribs& attribs) = 0;
// Creates a GL surface that renders directly to a view.
virtual scoped_refptr<gl::GLSurface> CreateViewGLSurface(
« ui/gl/gl_context_cgl.cc ('K') | « ui/ozone/platform/x11/gl_ozone_glx.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698