diff options
author | 2016-02-08 12:56:56 -0800 | |
---|---|---|
committer | 2016-02-08 12:56:57 -0800 | |
commit | 3125565804054691b110b4731bc5a32070fab780 (patch) | |
tree | 9025e54e4d523d4cd2c87363ebc841f0f5a2b871 /include | |
parent | 21eaf3b00aa23ec352b595d5c54dd2c0faa0b0c6 (diff) |
extend modecolorfilter to 4f
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1670063002
Review URL: https://codereview.chromium.org/1670063002
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkColor.h | 2 | ||||
-rw-r--r-- | include/core/SkXfermode.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/core/SkColor.h b/include/core/SkColor.h index b1571c7009..101a9bdbed 100644 --- a/include/core/SkColor.h +++ b/include/core/SkColor.h @@ -192,6 +192,8 @@ struct SkPM4f { #endif }; +typedef SkPM4f (*SkXfermodeProc4f)(const SkPM4f& src, const SkPM4f& dst); + /* * The float values are 0...1 unpremultiplied */ diff --git a/include/core/SkXfermode.h b/include/core/SkXfermode.h index f2d8d57865..9549452960 100644 --- a/include/core/SkXfermode.h +++ b/include/core/SkXfermode.h @@ -144,6 +144,7 @@ public: porter-duff transfer mode. */ static SkXfermodeProc GetProc(Mode mode); + static SkXfermodeProc4f GetProc4f(Mode); /** * If the specified mode can be represented by a pair of Coeff, then return @@ -241,6 +242,7 @@ public: int count, const SkAlpha coverage[]); typedef void (*PM4fProcN)(const PM4fState&, uint32_t dst[], const SkPM4f src[], int count, const SkAlpha coverage[]); + static PM4fProc1 GetPM4fProc1(Mode, uint32_t flags); static PM4fProcN GetPM4fProcN(Mode, uint32_t flags); virtual PM4fProc1 getPM4fProc1(uint32_t flags) const; |