diff options
-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); |