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

Unified Diff: content/renderer/render_widget_fullscreen_pepper.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/render_widget_fullscreen_pepper.cc
===================================================================
--- content/renderer/render_widget_fullscreen_pepper.cc (revision 105158)
+++ content/renderer/render_widget_fullscreen_pepper.cc (working copy)
@@ -14,6 +14,7 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebSize.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebWidget.h"
+#include "ui/gfx/gl/gpu_preference.h"
#include "webkit/plugins/ppapi/plugin_delegate.h"
#include "webkit/plugins/ppapi/ppapi_plugin_instance.h"
@@ -362,7 +363,8 @@
NULL,
"GL_OES_packed_depth_stencil GL_OES_depth24",
attribs,
- active_url_);
+ active_url_,
+ gfx::PreferIntegratedGpu);
if (!context_)
return;

Powered by Google App Engine
This is Rietveld 408576698