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

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

Issue 2851253002: Remove legacy SkPixelRef API flag from Chrome (Closed)
Patch Set: More Android fixes Created 3 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 | « chrome/browser/android/thumbnail/thumbnail.cc ('k') | skia/config/SkUserConfig.h » ('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 e8b6256aebb41d40311a628ccca7f1d3a467f0bf..5653b6e32d9aa149af71762ccdf8215fa4b31caa 100644
--- a/chrome/browser/android/thumbnail/thumbnail_cache.cc
+++ b/chrome/browser/android/thumbnail/thumbnail_cache.cc
@@ -511,18 +511,16 @@ bool WriteToFile(base::File& file,
// Write ETC1 header.
unsigned char etc1_buffer[ETC_PKM_HEADER_SIZE];
- etc1_pkm_format_header(etc1_buffer,
- compressed_data->info().width(),
- compressed_data->info().height());
+ etc1_pkm_format_header(etc1_buffer, compressed_data->width(),
+ compressed_data->height());
int header_bytes_written = file.WriteAtCurrentPos(
reinterpret_cast<char*>(etc1_buffer), ETC_PKM_HEADER_SIZE);
if (header_bytes_written != ETC_PKM_HEADER_SIZE)
return false;
- int data_size = etc1_get_encoded_data_size(
- compressed_data->info().width(),
- compressed_data->info().height());
+ int data_size = etc1_get_encoded_data_size(compressed_data->width(),
+ compressed_data->height());
int pixel_bytes_written = file.WriteAtCurrentPos(
reinterpret_cast<char*>(compressed_data->pixels()),
data_size);
@@ -853,8 +851,8 @@ void ThumbnailCache::DecompressionTask(
bool success = false;
if (compressed_data.get()) {
- gfx::Size buffer_size = gfx::Size(compressed_data->info().width(),
- compressed_data->info().height());
+ gfx::Size buffer_size =
+ gfx::Size(compressed_data->width(), compressed_data->height());
SkBitmap raw_data;
raw_data.allocPixels(SkImageInfo::Make(buffer_size.width(),
« no previous file with comments | « chrome/browser/android/thumbnail/thumbnail.cc ('k') | skia/config/SkUserConfig.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698