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

Unified Diff: content/browser/frame_host/navigation_entry_screenshot_manager.cc

Issue 136453009: Fix for Issue 331895: Make gesturenav screenshot greyscale (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 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 | « no previous file | ui/gfx/codec/png_codec.h » ('j') | ui/gfx/codec/png_codec.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/navigation_entry_screenshot_manager.cc
diff --git a/content/browser/frame_host/navigation_entry_screenshot_manager.cc b/content/browser/frame_host/navigation_entry_screenshot_manager.cc
index 0b955fc6d7c5aca41e1a07b02b0a42f5c7fffe66..b7647afb3d6de218cd822da7ba0b20242c3d59f3 100644
--- a/content/browser/frame_host/navigation_entry_screenshot_manager.cc
+++ b/content/browser/frame_host/navigation_entry_screenshot_manager.cc
@@ -49,7 +49,7 @@ class ScreenshotData : public base::RefCountedThreadSafe<ScreenshotData> {
void EncodeOnWorker(const SkBitmap& bitmap) {
std::vector<unsigned char> data;
- if (gfx::PNGCodec::EncodeBGRASkBitmap(bitmap, true, &data))
+ if (gfx::PNGCodec::EncodeBGRASkBitmap(bitmap, true, &data, true))
data_ = new base::RefCountedBytes(data);
}
« no previous file with comments | « no previous file | ui/gfx/codec/png_codec.h » ('j') | ui/gfx/codec/png_codec.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698