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

Unified Diff: gpu/gles2_conform_support/egl/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 | « gpu/config/gpu_info_collector.cc ('k') | gpu/ipc/service/gpu_command_buffer_stub.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/gles2_conform_support/egl/context.cc
diff --git a/gpu/gles2_conform_support/egl/context.cc b/gpu/gles2_conform_support/egl/context.cc
index 2d870e7dc2dca6c0317e68995195ee306d4083e0..001e4979d87d3b206098a190d0184d2fefeaae8a 100644
--- a/gpu/gles2_conform_support/egl/context.cc
+++ b/gpu/gles2_conform_support/egl/context.cc
@@ -273,10 +273,8 @@
decoder->set_engine(command_executor.get());
- gl::GLContextAttribs context_attribs;
- context_attribs.gpu_preference = gl::PreferDiscreteGpu;
scoped_refptr<gl::GLContext> gl_context(
- gl::init::CreateGLContext(nullptr, gl_surface, context_attribs));
+ gl::init::CreateGLContext(nullptr, gl_surface, gl::PreferDiscreteGpu));
if (!gl_context)
return false;
« no previous file with comments | « gpu/config/gpu_info_collector.cc ('k') | gpu/ipc/service/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698