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

Unified Diff: content/browser/renderer_host/clipboard_message_filter.cc

Issue 1874403003: Tweak libpng encoding parameters to increase speed on very large images. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tweaks and improve perf tests. Created 4 years, 8 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/BUILD.gn » ('j') | ui/gfx/BUILD.gn » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/clipboard_message_filter.cc
diff --git a/content/browser/renderer_host/clipboard_message_filter.cc b/content/browser/renderer_host/clipboard_message_filter.cc
index e317c9e81beccc0dcd4131765ce5eef17ab5ce64..8682410f857fe8ee003cb251858ae884119e5376 100644
--- a/content/browser/renderer_host/clipboard_message_filter.cc
+++ b/content/browser/renderer_host/clipboard_message_filter.cc
@@ -192,7 +192,8 @@ void ClipboardMessageFilter::ReadAndEncodeImage(const SkBitmap& bitmap,
IPC::Message* reply_msg) {
if (!bitmap.isNull()) {
std::unique_ptr<std::vector<uint8_t>> png_data(new std::vector<uint8_t>);
- if (gfx::PNGCodec::FastEncodeBGRASkBitmap(bitmap, false, png_data.get())) {
+ if (gfx::PNGCodec::NoCompressEncodeBGRASkBitmap(bitmap, false,
+ png_data.get())) {
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
base::Bind(&ClipboardMessageFilter::OnReadAndEncodeImageFinished,
« no previous file with comments | « no previous file | ui/gfx/BUILD.gn » ('j') | ui/gfx/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698