Index: src/core/SkColorSpaceXform.h |
diff --git a/src/core/SkColorSpaceXform.h b/src/core/SkColorSpaceXform.h |
index c80cd15dcae4f24e335a4e4d1e44f831cdb00a2e..001d71b454f0c549c2669498f8c3db1d7c9bd677 100644 |
--- a/src/core/SkColorSpaceXform.h |
+++ b/src/core/SkColorSpaceXform.h |
@@ -41,6 +41,8 @@ public: |
virtual void apply(void* dst, const uint32_t* src, int len, SkColorType dstColorType, |
SkAlphaType dstAlphaType) const = 0; |
+ virtual void applyYUV(void* dst, const uint8_t* y, const uint8_t* u, const uint8_t* v, int width) const = 0; |
+ |
virtual ~SkColorSpaceXform() {} |
}; |
@@ -69,6 +71,8 @@ public: |
void apply(void* dst, const uint32_t* src, int len, SkColorType dstColorType, |
SkAlphaType dstAlphaType) const override; |
+ void applyYUV(void* dst, const uint8_t* y, const uint8_t* u, const uint8_t* v, int width) const override; |
+ |
static constexpr int kDstGammaTableSize = 1024; |
private: |