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

Unified Diff: src/codec/SkCodec.cpp

Issue 2000713003: Add SkColorSpace to SkImageInfo (Closed) Base URL: https://skia.googlesource.com/skia.git@public
Patch Set: Created 4 years, 7 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
Index: src/codec/SkCodec.cpp
diff --git a/src/codec/SkCodec.cpp b/src/codec/SkCodec.cpp
index 955c86d609cca52f4ddb9925a32fac1ccc33a0dd..3da7f5fb07bd9f6381417ea904fb67c77a5d69a0 100644
--- a/src/codec/SkCodec.cpp
+++ b/src/codec/SkCodec.cpp
@@ -117,10 +117,10 @@ SkCodec* SkCodec::NewFromData(SkData* data, SkPngChunkReader* reader) {
SkCodec::SkCodec(int width, int height, const SkEncodedInfo& info, SkStream* stream,
sk_sp<SkColorSpace> colorSpace, Origin origin)
: fEncodedInfo(info)
- , fSrcInfo(info.makeImageInfo(width, height))
+ , fSrcInfo(info.makeImageInfo(width, height, colorSpace))
, fStream(stream)
, fNeedsRewind(false)
- , fColorSpace(colorSpace)
+ , fColorSpace(std::move(colorSpace))
, fOrigin(origin)
, fDstInfo()
, fOptions()

Powered by Google App Engine
This is Rietveld 408576698