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

Unified Diff: third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp

Issue 2462803002: Plumb color space to DecodingImageGenerator and ImageFrameGenerator (Closed)
Patch Set: Incorporate review feedback Created 4 years, 1 month 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 | third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp b/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp
index f1d9fab0f870d5452e9a8b48c1bd3584df7d731d..bccdb1244e7ceaafb8a42fe53b86f94cb8c79778 100644
--- a/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp
+++ b/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp
@@ -147,11 +147,11 @@ SkImageGenerator* DecodingImageGenerator::create(SkData* data) {
return nullptr;
const IntSize size = decoder->size();
- const SkImageInfo info =
- SkImageInfo::MakeN32Premul(size.width(), size.height());
+ const SkImageInfo info = SkImageInfo::MakeN32(
+ size.width(), size.height(), kPremul_SkAlphaType, decoder->colorSpace());
RefPtr<ImageFrameGenerator> frame = ImageFrameGenerator::create(
- SkISize::Make(size.width(), size.height()), false);
+ SkISize::Make(size.width(), size.height()), decoder->colorSpace(), false);
if (!frame)
return nullptr;
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698