Index: src/core/SkColorSpaceXform.h |
diff --git a/src/core/SkColorSpaceXform.h b/src/core/SkColorSpaceXform.h |
index 8f1c24cac123d565c8a168e353722977ca9c799f..df056a862e450d31f8e81cf31e69149342049186 100644 |
--- a/src/core/SkColorSpaceXform.h |
+++ b/src/core/SkColorSpaceXform.h |
@@ -31,7 +31,7 @@ public: |
* |dstColorType| and is premultiplied by alpha if |premul| is set. |
*/ |
virtual void apply(void* dst, const uint32_t* src, int len, SkColorType dstColorType, |
- SkAlphaType dstAlphaType) const = 0; |
+ SkAlphaType dstAlphaType) const = 0; |
virtual ~SkColorSpaceXform() {} |
}; |
@@ -68,6 +68,10 @@ private: |
uint8_t fDstGammaTableStorage[3 * kDstGammaTableSize]; |
friend class SkColorSpaceXform; |
+ friend std::unique_ptr<SkColorSpaceXform> SlowIdentityXform(const sk_sp<SkColorSpace>& space); |
}; |
+// For testing. Bypasses opts for when src and dst color spaces are equal. |
+std::unique_ptr<SkColorSpaceXform> SlowIdentityXform(const sk_sp<SkColorSpace>& space); |
+ |
#endif |