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

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

Issue 2497503004: Revert of 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
« no previous file with comments | « ui/gl/init/gl_factory_win.cc ('k') | ui/gl/test/gl_image_test_template.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/init/gl_factory_x11.cc
diff --git a/ui/gl/init/gl_factory_x11.cc b/ui/gl/init/gl_factory_x11.cc
index 88f86206e900cc5ece1eb3e89886edac3122fa31..e78c203e99d72e1b18aca1107a09b8684ea6b848 100644
--- a/ui/gl/init/gl_factory_x11.cc
+++ b/ui/gl/init/gl_factory_x11.cc
@@ -47,18 +47,18 @@
scoped_refptr<GLContext> CreateGLContext(GLShareGroup* share_group,
GLSurface* compatible_surface,
- const GLContextAttribs& attribs) {
+ GpuPreference gpu_preference) {
TRACE_EVENT0("gpu", "gl::init::CreateGLContext");
switch (GetGLImplementation()) {
case kGLImplementationOSMesaGL:
return InitializeGLContext(new GLContextOSMesa(share_group),
- compatible_surface, attribs);
+ compatible_surface, gpu_preference);
case kGLImplementationDesktopGL:
return InitializeGLContext(new GLContextGLX(share_group),
- compatible_surface, attribs);
+ compatible_surface, gpu_preference);
case kGLImplementationEGLGLES2:
return InitializeGLContext(new GLContextEGL(share_group),
- compatible_surface, attribs);
+ compatible_surface, gpu_preference);
case kGLImplementationMockGL:
return new GLContextStub(share_group);
default:
« no previous file with comments | « ui/gl/init/gl_factory_win.cc ('k') | ui/gl/test/gl_image_test_template.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698