Index: content/renderer/npapi/webplugin_delegate_proxy.cc |
diff --git a/content/renderer/npapi/webplugin_delegate_proxy.cc b/content/renderer/npapi/webplugin_delegate_proxy.cc |
index 0ba60f240f116f9cdf4813f360643543a0640b78..8c32c4b6d158174db4afd6020217310f03bbfd96 100644 |
--- a/content/renderer/npapi/webplugin_delegate_proxy.cc |
+++ b/content/renderer/npapi/webplugin_delegate_proxy.cc |
@@ -609,13 +609,13 @@ void WebPluginDelegateProxy::ResetWindowlessBitmaps() { |
front_buffer_diff_ = gfx::Rect(); |
} |
+#if !defined(OS_WIN) |
static size_t BitmapSizeForPluginRect(const gfx::Rect& plugin_rect) { |
const size_t stride = |
skia::PlatformCanvasStrideForWidth(plugin_rect.width()); |
return stride * plugin_rect.height(); |
} |
-#if !defined(OS_WIN) |
bool WebPluginDelegateProxy::CreateLocalBitmap( |
std::vector<uint8>* memory, |
scoped_ptr<skia::PlatformCanvas>* canvas) { |