From dba526fa150d26deae1a10f54bc3b72ed36e5520 Mon Sep 17 00:00:00 2001 From: "evan@chromium.org" Date: Thu, 9 Jul 2009 16:28:40 +0000 Subject: mac workaround. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20266 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/renderer/webplugin_delegate_proxy.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chrome/renderer') diff --git a/chrome/renderer/webplugin_delegate_proxy.cc b/chrome/renderer/webplugin_delegate_proxy.cc index d2b7906..1274d08 100644 --- a/chrome/renderer/webplugin_delegate_proxy.cc +++ b/chrome/renderer/webplugin_delegate_proxy.cc @@ -877,9 +877,8 @@ void WebPluginDelegateProxy::PaintSadPlugin(gfx::NativeDrawingContext hdc, std::max(0, (height - sad_plugin_->height())/2)); } - skia::PlatformDevice& device = canvas.getTopPlatformDevice(); - #if defined(OS_WIN) + skia::PlatformDevice& device = canvas.getTopPlatformDevice(); device.drawToHDC(hdc, plugin_rect_.x(), plugin_rect_.y(), NULL); #elif defined(OS_LINUX) // Though conceptually we've been handed a cairo_surface_t* and we @@ -888,6 +887,7 @@ void WebPluginDelegateProxy::PaintSadPlugin(gfx::NativeDrawingContext hdc, // and would have done the following copy anyway. // TODO(evanm): revisit when we have printing hooked up, as that might // change our usage of cairo. + skia::PlatformDevice& device = canvas.getTopPlatformDevice(); cairo_t* cairo = cairo_create(hdc); cairo_surface_t* source_surface = device.beginPlatformPaint(); cairo_set_source_surface(cairo, source_surface, plugin_rect_.x(), plugin_rect_.y()); -- cgit v1.1