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

Unified Diff: chrome/browser/ui/android/context_menu_helper.cc

Issue 2943363003: Fixing transparent pixels appearing black when rendered for the context menu. (Closed)
Patch Set: rebase Created 3 years, 6 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: chrome/browser/ui/android/context_menu_helper.cc
diff --git a/chrome/browser/ui/android/context_menu_helper.cc b/chrome/browser/ui/android/context_menu_helper.cc
index efc1d4db992e670d56e8a6b52e27553df7f635c7..394012a7de747c0f5bdfb65646e533175e6767c6 100644
--- a/chrome/browser/ui/android/context_menu_helper.cc
+++ b/chrome/browser/ui/android/context_menu_helper.cc
@@ -39,6 +39,8 @@ DEFINE_WEB_CONTENTS_USER_DATA_KEY(ContextMenuHelper);
const char kDataReductionProxyPassthroughHeader[] =
"Chrome-Proxy-Accept-Transform: identity\r\n";
+const bool kUsePNGCodec = true;
+
namespace {
class ContextMenuHelperImageRequest : public ImageDecoder::ImageRequest {
@@ -238,7 +240,7 @@ void ContextMenuHelper::RetrieveImageInternal(
// until there's either a connection error or a response.
auto* thumbnail_capturer_proxy = thumbnail_capturer.get();
thumbnail_capturer_proxy->RequestThumbnailForContextNode(
- 0, gfx::Size(max_dimen_px, max_dimen_px),
+ 0, gfx::Size(max_dimen_px, max_dimen_px), kUsePNGCodec,
base::Bind(retrieve_callback, base::Passed(&thumbnail_capturer),
base::android::ScopedJavaGlobalRef<jobject>(env, jcallback)));
}

Powered by Google App Engine
This is Rietveld 408576698