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

Unified Diff: ui/gfx/compositor/compositor_gl.cc

Issue 8233027: Support dynamic switching between integrated and discrete GPUs on Mac OS X. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 months 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 | « media/tools/shader_bench/shader_bench.cc ('k') | ui/gfx/gl/gl_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/compositor/compositor_gl.cc
===================================================================
--- ui/gfx/compositor/compositor_gl.cc (revision 105357)
+++ ui/gfx/compositor/compositor_gl.cc (working copy)
@@ -251,7 +251,10 @@
return false;
}
- context_ = gfx::GLContext::CreateGLContext(NULL, surface_.get());
+ context_ = gfx::GLContext::CreateGLContext(
+ NULL,
+ surface_.get(),
+ gfx::PreferIntegratedGpu);
if (!context_.get()) {
LOG(ERROR) << "Unable to create GL context.";
return false;
@@ -303,7 +306,10 @@
scoped_refptr<gfx::GLContext> SharedResources::CreateContext(
gfx::GLSurface* surface) {
if (initialized_)
- return gfx::GLContext::CreateGLContext(context_->share_group(), surface);
+ return gfx::GLContext::CreateGLContext(
+ context_->share_group(),
+ surface,
+ gfx::PreferIntegratedGpu);
else
return NULL;
}
« no previous file with comments | « media/tools/shader_bench/shader_bench.cc ('k') | ui/gfx/gl/gl_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698