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

Unified Diff: chrome/browser/android/thumbnail/thumbnail_cache.cc

Issue 2206263003: Remove SK_SUPPORT_LEGACY_DATA_FACTORIES. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ref when needed. Created 4 years, 4 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 | « cc/debug/picture_debug_util.cc ('k') | content/renderer/gpu/gpu_benchmarking_extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/thumbnail/thumbnail_cache.cc
diff --git a/chrome/browser/android/thumbnail/thumbnail_cache.cc b/chrome/browser/android/thumbnail/thumbnail_cache.cc
index 0996a9ee11d6ce808845c517e19efbab7674a22c..295d7fbf9e731628b8f8acff7b811be57c866759 100644
--- a/chrome/browser/android/thumbnail/thumbnail_cache.cc
+++ b/chrome/browser/android/thumbnail/thumbnail_cache.cc
@@ -569,7 +569,7 @@ void ThumbnailCache::CompressionTask(
encoded_size.height(),
kUnknown_SkColorType,
kUnpremul_SkAlphaType);
- sk_sp<SkData> etc1_pixel_data(SkData::NewUninitialized(encoded_bytes));
+ sk_sp<SkData> etc1_pixel_data(SkData::MakeUninitialized(encoded_bytes));
sk_sp<SkMallocPixelRef> etc1_pixel_ref(
SkMallocPixelRef::NewWithData(info, 0, NULL, etc1_pixel_data.get()));
@@ -685,7 +685,7 @@ bool ReadFromFile(base::File& file,
}
int data_size = etc1_get_encoded_data_size(raw_width, raw_height);
- sk_sp<SkData> etc1_pixel_data(SkData::NewUninitialized(data_size));
+ sk_sp<SkData> etc1_pixel_data(SkData::MakeUninitialized(data_size));
int pixel_bytes_read = file.ReadAtCurrentPos(
reinterpret_cast<char*>(etc1_pixel_data->writable_data()),
« no previous file with comments | « cc/debug/picture_debug_util.cc ('k') | content/renderer/gpu/gpu_benchmarking_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698