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

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
« no previous file with comments | « content/plugin/webplugin_proxy.h ('k') | content/renderer/gpu/gpu_channel_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/plugin/webplugin_proxy.cc
===================================================================
--- content/plugin/webplugin_proxy.cc (revision 105357)
+++ content/plugin/webplugin_proxy.cc (working copy)
@@ -673,9 +673,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();
}
« no previous file with comments | « content/plugin/webplugin_proxy.h ('k') | content/renderer/gpu/gpu_channel_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698