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

Unified Diff: ui/ozone/platform/x11/gl_ozone_glx.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/ozone/platform/x11/gl_ozone_glx.cc
diff --git a/ui/ozone/platform/x11/gl_ozone_glx.cc b/ui/ozone/platform/x11/gl_ozone_glx.cc
index 0b08e31e4de2236eda3c30f441e7fef663751a03..3ed91f9258bb7d5ae94c5cbabda59e56f40486e4 100644
--- a/ui/ozone/platform/x11/gl_ozone_glx.cc
+++ b/ui/ozone/platform/x11/gl_ozone_glx.cc
@@ -85,9 +85,9 @@ bool GLOzoneGLX::GetGLWindowSystemBindingInfo(
scoped_refptr<gl::GLContext> GLOzoneGLX::CreateGLContext(
gl::GLShareGroup* share_group,
gl::GLSurface* compatible_surface,
- gl::GpuPreference gpu_preference) {
+ const gl::GLContextAttribs& attribs) {
return gl::InitializeGLContext(new gl::GLContextGLX(share_group),
- compatible_surface, gpu_preference);
+ compatible_surface, attribs);
}
scoped_refptr<gl::GLSurface> GLOzoneGLX::CreateViewGLSurface(

Powered by Google App Engine
This is Rietveld 408576698