diff options
Diffstat (limited to 'gpu')
-rw-r--r-- | gpu/demos/framework/window.cc | 3 | ||||
-rw-r--r-- | gpu/gles2_conform_support/egl/display.cc | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/gpu/demos/framework/window.cc b/gpu/demos/framework/window.cc index efae079..8474d92 100644 --- a/gpu/demos/framework/window.cc +++ b/gpu/demos/framework/window.cc @@ -73,7 +73,8 @@ bool Window::CreateRenderContext(gfx::PluginWindowHandle hwnd) { if (!surface_.get()) return false; - context_ = gfx::GLContext::CreateGLContext(NULL, surface_.get()); + context_ = gfx::GLContext::CreateGLContext( + NULL, surface_.get(), gfx::PreferDiscreteGpu); if (!context_.get()) return false; diff --git a/gpu/gles2_conform_support/egl/display.cc b/gpu/gles2_conform_support/egl/display.cc index b3cebcc..fad076b 100644 --- a/gpu/gles2_conform_support/egl/display.cc +++ b/gpu/gles2_conform_support/egl/display.cc @@ -117,7 +117,9 @@ EGLSurface Display::CreateWindowSurface(EGLConfig config, if (!gl_surface_.get()) return EGL_NO_SURFACE; - gl_context_ = gfx::GLContext::CreateGLContext(NULL, gl_surface_.get()); + gl_context_ = gfx::GLContext::CreateGLContext(NULL, + gl_surface_.get(), + gfx::PreferDiscreteGpu); if (!gl_context_.get()) return EGL_NO_SURFACE; |