diff options
author | stuartmorgan@google.com <stuartmorgan@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-30 16:59:15 +0000 |
---|---|---|
committer | stuartmorgan@google.com <stuartmorgan@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-30 16:59:15 +0000 |
commit | b040653d5da6819dc0f409fb57e8c924b05a0758 (patch) | |
tree | 408aee9a860e89a4f6a3e4c8bdb824bd8d605111 | |
parent | d8ced45ef52cc29f35d8fafd9b6bdc83426e6924 (diff) | |
download | chromium_src-b040653d5da6819dc0f409fb57e8c924b05a0758.zip chromium_src-b040653d5da6819dc0f409fb57e8c924b05a0758.tar.gz chromium_src-b040653d5da6819dc0f409fb57e8c924b05a0758.tar.bz2 |
Fix the sad tab so that it draws right-side-up on the Mac
BUG=none
TEST=Kill a plugin process; sad tab should be right-side up.
Review URL: http://codereview.chromium.org/159611
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22062 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/renderer/webplugin_delegate_proxy.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/renderer/webplugin_delegate_proxy.cc b/chrome/renderer/webplugin_delegate_proxy.cc index b2a2d6f..f5e97b9 100644 --- a/chrome/renderer/webplugin_delegate_proxy.cc +++ b/chrome/renderer/webplugin_delegate_proxy.cc @@ -890,6 +890,11 @@ void WebPluginDelegateProxy::PaintSadPlugin(gfx::NativeDrawingContext context, const int height = plugin_rect_.height(); gfx::Canvas canvas(width, height, false); +#if defined(OS_MACOSX) + // Flip the canvas, since the context expects flipped data. + canvas.translate(0, height); + canvas.scale(1, -1); +#endif SkPaint paint; paint.setStyle(SkPaint::kFill_Style); |