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

Unified Diff: ui/gl/init/gl_factory_ozone.cc

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
Index: ui/gl/init/gl_factory_ozone.cc
diff --git a/ui/gl/init/gl_factory_ozone.cc b/ui/gl/init/gl_factory_ozone.cc
index af7a40dce35935456b021ccee6868939cad459ad..ef3cb9a0872f885d0271a606d7725faa68368c56 100644
--- a/ui/gl/init/gl_factory_ozone.cc
+++ b/ui/gl/init/gl_factory_ozone.cc
@@ -80,12 +80,12 @@ bool GetGLWindowSystemBindingInfo(GLWindowSystemBindingInfo* info) {
scoped_refptr<GLContext> CreateGLContext(GLShareGroup* share_group,
GLSurface* compatible_surface,
- GpuPreference gpu_preference) {
+ const GLContextAttribs& attribs) {
TRACE_EVENT0("gpu", "gl::init::CreateGLContext");
if (HasGLOzone()) {
return GetGLOzone()->CreateGLContext(share_group, compatible_surface,
- gpu_preference);
+ attribs);
}
switch (GetGLImplementation()) {
@@ -93,10 +93,10 @@ scoped_refptr<GLContext> CreateGLContext(GLShareGroup* share_group,
return scoped_refptr<GLContext>(new GLContextStub(share_group));
case kGLImplementationOSMesaGL:
return InitializeGLContext(new GLContextOSMesa(share_group),
- compatible_surface, gpu_preference);
+ compatible_surface, attribs);
case kGLImplementationEGLGLES2:
return InitializeGLContext(new GLContextEGL(share_group),
- compatible_surface, gpu_preference);
+ compatible_surface, attribs);
default:
NOTREACHED();
}

Powered by Google App Engine
This is Rietveld 408576698