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

Unified Diff: content/renderer/pepper_platform_context_3d_impl.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: content/renderer/pepper_platform_context_3d_impl.cc
===================================================================
--- content/renderer/pepper_platform_context_3d_impl.cc (revision 105357)
+++ content/renderer/pepper_platform_context_3d_impl.cc (working copy)
@@ -12,6 +12,7 @@
#include "googleurl/src/gurl.h"
#include "gpu/command_buffer/client/gles2_cmd_helper.h"
#include "gpu/command_buffer/client/gles2_implementation.h"
+#include "ui/gfx/gl/gpu_preference.h"
#ifdef ENABLE_GPU
@@ -99,7 +100,8 @@
NULL,
"*",
attribs,
- GURL::EmptyGURL());
+ GURL::EmptyGURL(),
+ gfx::PreferDiscreteGpu);
if (!command_buffer_)
return false;
« no previous file with comments | « content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc ('k') | content/renderer/render_widget_fullscreen_pepper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698