Index: chrome/renderer/webplugin_delegate_proxy.cc |
=================================================================== |
--- chrome/renderer/webplugin_delegate_proxy.cc (revision 30454) |
+++ chrome/renderer/webplugin_delegate_proxy.cc (working copy) |
@@ -273,6 +273,16 @@ |
transparent_ = true; |
} |
} |
+#if defined(OS_MACOSX) |
+ // Until we have a way to support accelerated (3D) drawing on Macs, ask |
+ // Flash to use windowless mode so that it use CoreGraphics instead of opening |
+ // OpenGL contexts overlaying the browser window (which will fail or crash |
+ // because Mac OS X does not allow that across processes). |
+ if (!transparent_ && mime_type_ == "application/x-shockwave-flash" ) { |
darin (slow to review)
2009/10/29 19:54:24
nit: extra space there at the end
Amanda Walker
2009/10/29 20:08:14
Oops, missed that before committing. Will fix.
|
+ params.arg_names.push_back("wmode"); |
+ params.arg_values.push_back("opaque"); |
+ } |
+#endif |
params.load_manually = load_manually; |
plugin_ = plugin; |