Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2750)

Unified Diff: content/renderer/npapi/webplugin_delegate_proxy.cc

Issue 1255073002: clang/win: Fix most -Wunused-function warnings in Chromium code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mac Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {

Powered by Google App Engine
This is Rietveld 408576698