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

Unified Diff: content/plugin/webplugin_proxy.h

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/plugin/webplugin_proxy.h
===================================================================
--- content/plugin/webplugin_proxy.h (revision 105158)
+++ content/plugin/webplugin_proxy.h (working copy)
@@ -22,6 +22,7 @@
#if defined(USE_X11)
#include "ui/base/x/x11_util.h"
#endif
+#include "ui/gfx/gl/gpu_preference.h"
#include "ui/gfx/surface/transport_dib.h"
#include "webkit/plugins/npapi/webplugin.h"
@@ -135,7 +136,8 @@
virtual void BindFakePluginWindowHandle(bool opaque);
- virtual webkit::npapi::WebPluginAcceleratedSurface* GetAcceleratedSurface();
+ virtual webkit::npapi::WebPluginAcceleratedSurface*
+ GetAcceleratedSurface(gfx::GpuPreference gpu_preference);
// Tell the browser (via the renderer) to invalidate because the
// accelerated buffers have changed.

Powered by Google App Engine
This is Rietveld 408576698