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

Unified Diff: chrome/browser/ui/tab_contents/core_tab_helper.cc

Issue 2943363003: Fixing transparent pixels appearing black when rendered for the context menu. (Closed)
Patch Set: creating and implementing ImageFormat enum 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
« no previous file with comments | « chrome/browser/ui/android/context_menu_helper.cc ('k') | chrome/common/thumbnail_capturer.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/tab_contents/core_tab_helper.cc
diff --git a/chrome/browser/ui/tab_contents/core_tab_helper.cc b/chrome/browser/ui/tab_contents/core_tab_helper.cc
index ac3e496fd7acbe8229201729ea10088161b315aa..4ed2cee3eb76339f5701a2239df3025ee2d942e1 100644
--- a/chrome/browser/ui/tab_contents/core_tab_helper.cc
+++ b/chrome/browser/ui/tab_contents/core_tab_helper.cc
@@ -119,6 +119,7 @@ void CoreTabHelper::SearchByImageInNewTab(
thumbnail_capturer_proxy->RequestThumbnailForContextNode(
kImageSearchThumbnailMinSize,
gfx::Size(kImageSearchThumbnailMaxWidth, kImageSearchThumbnailMaxHeight),
+ chrome::mojom::ImageFormat::JPEG,
base::Bind(&CoreTabHelper::DoSearchByImageInNewTab,
weak_factory_.GetWeakPtr(), base::Passed(&thumbnail_capturer),
src_url));
« no previous file with comments | « chrome/browser/ui/android/context_menu_helper.cc ('k') | chrome/common/thumbnail_capturer.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698