diff options
Diffstat (limited to 'chrome/browser/webdata/web_database.cc')
-rwxr-xr-x[-rw-r--r--] | chrome/browser/webdata/web_database.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/chrome/browser/webdata/web_database.cc b/chrome/browser/webdata/web_database.cc index af78244..83fa217 100644..100755 --- a/chrome/browser/webdata/web_database.cc +++ b/chrome/browser/webdata/web_database.cc @@ -201,11 +201,7 @@ bool WebDatabase::SetWebAppImage(const GURL& url, } std::vector<unsigned char> image_data; - - SkAutoLockPixels pixel_lock(image); - PNGEncoder::Encode(reinterpret_cast<unsigned char*>(image.getPixels()), - PNGEncoder::FORMAT_BGRA, image.width(), - image.height(), image.width() * 4, false, &image_data); + PNGEncoder::EncodeBGRASkBitmap(image, false, &image_data); s.bind_string(0, history::HistoryDatabase::GURLToDatabaseURL(url)); s.bind_int(1, image.width()); |