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

Unified Diff: cc/tiles/gpu_image_decode_cache.cc

Issue 2823973002: GpuImageDecodeCache: Use legacy scaling (Closed)
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/gpu_image_decode_cache.cc
diff --git a/cc/tiles/gpu_image_decode_cache.cc b/cc/tiles/gpu_image_decode_cache.cc
index 39a822617dba6ab31d8606c710c47382018a576a..f81630b446024893ee59b36ba07597f7e50046fe 100644
--- a/cc/tiles/gpu_image_decode_cache.cc
+++ b/cc/tiles/gpu_image_decode_cache.cc
@@ -1100,8 +1100,8 @@ void GpuImageDecodeCache::DecodeImageIfNecessary(const DrawImage& draw_image,
// In order to match GPU scaling quality (which uses mip-maps at high
// quality), we want to use at most medium filter quality for the
// scale.
- SkPixmap image_pixmap(image_info, backing_memory->data(),
- image_info.minRowBytes());
+ SkPixmap image_pixmap(image_info.makeColorSpace(nullptr),
+ backing_memory->data(), image_info.minRowBytes());
ccameron 2017/04/17 18:40:03 Ooh, good point.
// Note that scalePixels falls back to readPixels if the sale is 1x, so
// no need to special case that as an optimization.
if (!draw_image.image()->scalePixels(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698