summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-09 16:28:40 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-09 16:28:40 +0000
commitdba526fa150d26deae1a10f54bc3b72ed36e5520 (patch)
tree660f34037cd10498623a06c4e00b57a5620a013c /chrome
parenta914df178a5f13444e35545b76d05143bbb2db62 (diff)
downloadchromium_src-dba526fa150d26deae1a10f54bc3b72ed36e5520.zip
chromium_src-dba526fa150d26deae1a10f54bc3b72ed36e5520.tar.gz
chromium_src-dba526fa150d26deae1a10f54bc3b72ed36e5520.tar.bz2
mac workaround.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20266 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/renderer/webplugin_delegate_proxy.cc4
1 files changed, 2 insertions, 2 deletions
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());