Index: chrome/browser/android/thumbnail/thumbnail_store.cc |
diff --git a/chrome/browser/android/thumbnail/thumbnail_store.cc b/chrome/browser/android/thumbnail/thumbnail_store.cc |
index 003b5f5c9a972c0760c19ed52455c230da2e8881..a1652d15326d1e660e0ab07e85a3a99a7664d82d 100644 |
--- a/chrome/browser/android/thumbnail/thumbnail_store.cc |
+++ b/chrome/browser/android/thumbnail/thumbnail_store.cc |
@@ -564,10 +564,10 @@ void ThumbnailStore::CompressionTask( |
size_t encoded_bytes = |
etc1_get_encoded_data_size(encoded_size.width(), encoded_size.height()); |
- SkImageInfo info = {encoded_size.width(), |
- encoded_size.height(), |
- kUnknown_SkColorType, |
- kUnpremul_SkAlphaType}; |
+ SkImageInfo info = SkImageInfo::Make(encoded_size.width(), |
+ encoded_size.height(), |
+ kUnknown_SkColorType, |
+ kUnpremul_SkAlphaType); |
skia::RefPtr<SkData> etc1_pixel_data = skia::AdoptRef( |
SkData::NewFromMalloc(new uint8_t[encoded_bytes], encoded_bytes)); |
skia::RefPtr<SkMallocPixelRef> etc1_pixel_ref = skia::AdoptRef( |
@@ -694,10 +694,10 @@ bool ReadFromFile(base::File& file, |
if (pixel_bytes_read != data_size) |
return false; |
- SkImageInfo info = {raw_width, |
- raw_height, |
- kUnknown_SkColorType, |
- kUnpremul_SkAlphaType}; |
+ SkImageInfo info = SkImageInfo::Make(raw_width, |
+ raw_height, |
+ kUnknown_SkColorType, |
+ kUnpremul_SkAlphaType); |
etc1_pixel_data = skia::AdoptRef( |
SkData::NewFromMalloc(raw_data.release(), data_size)); |