| Index: src/core/SkColorSpace.h
|
| diff --git a/src/core/SkColorSpace.h b/src/core/SkColorSpace.h
|
| index 777be9da2b4ebaae9e918197517775adb2a82777..0708e5713d5bebe45908bda674d2161241dc8b62 100644
|
| --- a/src/core/SkColorSpace.h
|
| +++ b/src/core/SkColorSpace.h
|
| @@ -35,6 +35,19 @@ struct SkFloat3x3 {
|
| void dump() const;
|
| };
|
|
|
| +struct SkColorLookUpTable {
|
| + static const uint8_t kMaxChannels = 16;
|
| +
|
| + uint8_t fInputChannels;
|
| + uint8_t fOutputChannels;
|
| + uint8_t fGridPoints[kMaxChannels];
|
| + std::unique_ptr<float[]> fTable;
|
| +
|
| + SkColorLookUpTable() {
|
| + memset(this, 0, sizeof(struct SkColorLookUpTable));
|
| + }
|
| +};
|
| +
|
| struct SkPM4f;
|
| void SkApply3x3ToPM4f(const SkFloat3x3&, const SkPM4f src[], SkPM4f dst[], int count);
|
|
|
| @@ -75,14 +88,19 @@ public:
|
| static void Test();
|
| void dump() const;
|
|
|
| -protected:
|
| - SkColorSpace(const SkFloat3x3& toXYZ, const SkFloat3& gamma, Named);
|
| -
|
| private:
|
| - const SkFloat3x3 fToXYZD50;
|
| - const SkFloat3 fGamma;
|
| - const uint32_t fUniqueID;
|
| - const Named fNamed;
|
| + SkColorSpace(const SkFloat3& gamma, const SkFloat3x3& toXYZ, Named);
|
| +
|
| + SkColorSpace(SkColorLookUpTable colorLUT, const SkFloat3& gamma, const SkFloat3x3& toXYZ,
|
| + const SkFloat3& toXYZOffset);
|
| +
|
| + const SkColorLookUpTable fColorLUT;
|
| + const SkFloat3 fGamma;
|
| + const SkFloat3x3 fToXYZD50;
|
| + const SkFloat3 fToXYZOffset;
|
| +
|
| + const uint32_t fUniqueID;
|
| + const Named fNamed;
|
| };
|
|
|
| #endif
|
|
|