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

Unified Diff: media/tools/shader_bench/shader_bench.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
Index: media/tools/shader_bench/shader_bench.cc
===================================================================
--- media/tools/shader_bench/shader_bench.cc (revision 105158)
+++ media/tools/shader_bench/shader_bench.cc (working copy)
@@ -133,7 +133,10 @@
scoped_ptr<media::Window> window(new media::Window(width, height));
gfx::GLSurface* surface =
gfx::GLSurface::CreateViewGLSurface(false, window->PluginWindow());
- gfx::GLContext* context = gfx::GLContext::CreateGLContext(NULL, surface);
+ gfx::GLContext* context = gfx::GLContext::CreateGLContext(
+ NULL,
+ surface,
+ gfx::PreferDiscreteGpu);
context->MakeCurrent(surface);
// This sets D3DPRESENT_INTERVAL_IMMEDIATE on Windows.
context->SetSwapInterval(0);

Powered by Google App Engine
This is Rietveld 408576698