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

Unified Diff: include/codec/SkCodec.h

Issue 1952063002: Create SkColorSpaceXform to handle color conversions (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add private API to allow test code to access ICC data 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: include/codec/SkCodec.h
diff --git a/include/codec/SkCodec.h b/include/codec/SkCodec.h
index 50875e46c4a42cfbef1d204a0af3bfa01a74b38c..b6ea02ac37704fa8a1704f980dc9a48c3d805839 100644
--- a/include/codec/SkCodec.h
+++ b/include/codec/SkCodec.h
@@ -23,6 +23,10 @@ class SkData;
class SkPngChunkReader;
class SkSampler;
+namespace DM {
+class ColorCodecSrc;
+}
+
/**
* Abstraction layer directly on top of an image codec.
*/
@@ -646,6 +650,10 @@ protected:
virtual int onOutputScanline(int inputScanline) const;
+ /**
+ * Used for testing with qcms.
scroggo 2016/05/31 21:13:34 I think you said this was temporary? Should there
msarett 2016/05/31 22:02:19 Yes I think so.
+ */
+ virtual sk_sp<SkData> getICCData() const { return nullptr; }
private:
const SkEncodedInfo fEncodedInfo;
const SkImageInfo fSrcInfo;
@@ -709,6 +717,7 @@ private:
*/
virtual SkSampler* getSampler(bool /*createIfNecessary*/) { return nullptr; }
+ friend class DM::ColorCodecSrc; // For testing with qcms
friend class SkSampledCodec;
friend class SkIcoCodec;
};

Powered by Google App Engine
This is Rietveld 408576698