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

Unified Diff: content/plugin/webplugin_proxy.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/plugin/webplugin_proxy.cc
===================================================================
--- content/plugin/webplugin_proxy.cc (revision 104937)
+++ content/plugin/webplugin_proxy.cc (working copy)
@@ -672,9 +672,11 @@
Send(new PluginHostMsg_BindFakePluginWindowHandle(route_id_, opaque));
}
-WebPluginAcceleratedSurface* WebPluginProxy::GetAcceleratedSurface() {
+WebPluginAcceleratedSurface* WebPluginProxy::GetAcceleratedSurface(
+ gfx::GpuPreference gpu_preference) {
if (!accelerated_surface_.get())
- accelerated_surface_.reset(new WebPluginAcceleratedSurfaceProxy(this));
+ accelerated_surface_.reset(new WebPluginAcceleratedSurfaceProxy(
+ this, gpu_preference));
return accelerated_surface_.get();
}

Powered by Google App Engine
This is Rietveld 408576698