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

Unified Diff: chrome/browser/importer/importer.cc

Issue 18347: Add a PNGEncoder helper function that takes an SkBitmap, (Closed)
Patch Set: Test2 Created 11 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 | « chrome/browser/gears_integration.cc ('k') | chrome/browser/webdata/web_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/importer/importer.cc
diff --git a/chrome/browser/importer/importer.cc b/chrome/browser/importer/importer.cc
old mode 100644
new mode 100755
index 52a035db4f030fead44c35b209d740cee97a1cad..f3cb3920f733f1532034f8075857ad1a19a04c4a
--- a/chrome/browser/importer/importer.cc
+++ b/chrome/browser/importer/importer.cc
@@ -389,10 +389,7 @@ bool Importer::ReencodeFavicon(const unsigned char* src_data, size_t src_len,
}
// Encode our bitmap as a PNG.
- SkAutoLockPixels decoded_lock(decoded);
- PNGEncoder::Encode(reinterpret_cast<unsigned char*>(decoded.getPixels()),
- PNGEncoder::FORMAT_BGRA, decoded.width(),
- decoded.height(), decoded.width() * 4, false, png_data);
+ PNGEncoder::EncodeBGRASkBitmap(decoded, false, png_data);
return true;
}
« no previous file with comments | « chrome/browser/gears_integration.cc ('k') | chrome/browser/webdata/web_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698