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

Unified Diff: cc/raster/tile_task_worker_pool.cc

Issue 1832573004: Gpu Image Decode Controller (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 | « cc/raster/tile_task_runner.cc ('k') | cc/resources/resource_format.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/raster/tile_task_worker_pool.cc
diff --git a/cc/raster/tile_task_worker_pool.cc b/cc/raster/tile_task_worker_pool.cc
index 91e51640cefc32c778f2c7a522352fa4e63ed477..f8c1c736b52b72fc9ed9d591e6daf389fcef7934 100644
--- a/cc/raster/tile_task_worker_pool.cc
+++ b/cc/raster/tile_task_worker_pool.cc
@@ -122,9 +122,10 @@ void TileTaskWorkerPool::PlaybackToMemory(
} else {
TRACE_EVENT0("cc",
"TileTaskWorkerPool::PlaybackToMemory::ConvertRGBA4444");
- SkImageInfo dst_info = SkImageInfo::Make(
- info.width(), info.height(), ResourceFormatToSkColorType(format),
- info.alphaType(), info.profileType());
+ SkImageInfo dst_info =
+ SkImageInfo::Make(info.width(), info.height(),
+ ResourceFormatToClosestSkColorType(format),
+ info.alphaType(), info.profileType());
bool rv = surface->readPixels(dst_info, memory, stride, 0, 0);
DCHECK(rv);
}
« no previous file with comments | « cc/raster/tile_task_runner.cc ('k') | cc/resources/resource_format.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698