diff options
author | amanda@chromium.org <amanda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-29 19:49:33 +0000 |
---|---|---|
committer | amanda@chromium.org <amanda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-29 19:49:33 +0000 |
commit | 596632af439961248cb1f677f0d613531c1a9185 (patch) | |
tree | 1068b2626cd1af72e3cbebb102e9295fb1e6515b /chrome/renderer | |
parent | 8be14ea3f50f92a1587dcdd51fc83f02120a59f6 (diff) | |
download | chromium_src-596632af439961248cb1f677f0d613531c1a9185.zip chromium_src-596632af439961248cb1f677f0d613531c1a9185.tar.gz chromium_src-596632af439961248cb1f677f0d613531c1a9185.tar.bz2 |
Try to force plugins to use software rendering until we can support
hardware acceleration on the Mac.
BUG=25406, 25092
TEST=Flash should no longer crash immediately after loading on
sites with complex Flash applications.
Review URL: http://codereview.chromium.org/339068
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30493 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/webplugin_delegate_proxy.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/renderer/webplugin_delegate_proxy.cc b/chrome/renderer/webplugin_delegate_proxy.cc index 5241ccb..f934067 100644 --- a/chrome/renderer/webplugin_delegate_proxy.cc +++ b/chrome/renderer/webplugin_delegate_proxy.cc @@ -273,6 +273,16 @@ bool WebPluginDelegateProxy::Initialize(const GURL& url, 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" ) { + params.arg_names.push_back("wmode"); + params.arg_values.push_back("opaque"); + } +#endif params.load_manually = load_manually; plugin_ = plugin; |