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

Unified Diff: ui/gl/gl_context.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/gl_context.h ('k') | ui/gl/gl_context_cgl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_context.cc
diff --git a/ui/gl/gl_context.cc b/ui/gl/gl_context.cc
index 609d131f03cdb075b5b293b500abb15afda5acac..60e2b399435f973c62e4765515854dd42f51e8a6 100644
--- a/ui/gl/gl_context.cc
+++ b/ui/gl/gl_context.cc
@@ -273,8 +273,8 @@
scoped_refptr<GLContext> InitializeGLContext(scoped_refptr<GLContext> context,
GLSurface* compatible_surface,
- const GLContextAttribs& attribs) {
- if (!context->Initialize(compatible_surface, attribs))
+ GpuPreference gpu_preference) {
+ if (!context->Initialize(compatible_surface, gpu_preference))
return nullptr;
return context;
}
« no previous file with comments | « ui/gl/gl_context.h ('k') | ui/gl/gl_context_cgl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698