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

Unified Diff: ui/ozone/common/gl_ozone_egl.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/common/gl_ozone_egl.cc
diff --git a/ui/ozone/common/gl_ozone_egl.cc b/ui/ozone/common/gl_ozone_egl.cc
index 8bf2fd38b54219393b61b014fb304df4eb9e88e8..cc2f357c4d3b626f3f625340b0563a1fbeec9e20 100644
--- a/ui/ozone/common/gl_ozone_egl.cc
+++ b/ui/ozone/common/gl_ozone_egl.cc
@@ -54,9 +54,9 @@ bool GLOzoneEGL::GetGLWindowSystemBindingInfo(
scoped_refptr<gl::GLContext> GLOzoneEGL::CreateGLContext(
gl::GLShareGroup* share_group,
gl::GLSurface* compatible_surface,
- gl::GpuPreference gpu_preference) {
+ const gl::GLContextAttribs& attribs) {
return gl::InitializeGLContext(new gl::GLContextEGL(share_group),
- compatible_surface, gpu_preference);
+ compatible_surface, attribs);
}
scoped_refptr<gl::GLSurface> GLOzoneEGL::CreateSurfacelessViewGLSurface(

Powered by Google App Engine
This is Rietveld 408576698