diff options
author | 2016-07-22 11:05:04 -0700 | |
---|---|---|
committer | 2016-07-22 11:05:04 -0700 | |
commit | 9a5c47f4effba3b48a9a8c7c144b72b532d06efe (patch) | |
tree | 6eadf3e08008767aeb0620ed8bbabe75490d7698 /include/core/SkColorFilter.h | |
parent | 839345d63466a4209a0985654ec033624821fd78 (diff) |
Add SkRasterPipeline blitter.
This is now pixel-exact with the existing sRGB SW impl as far as I've tested.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2146413002
CQ_INCLUDE_TRYBOTS=master.client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot,Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-ASAN-Trybot
Committed: https://skia.googlesource.com/skia/+/3011e337693a9786f62d8de9ac4b239ad6dbdaca
Review-Url: https://codereview.chromium.org/2146413002
Diffstat (limited to 'include/core/SkColorFilter.h')
-rw-r--r-- | include/core/SkColorFilter.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/core/SkColorFilter.h b/include/core/SkColorFilter.h index 7b2ee7845e..609550f676 100644 --- a/include/core/SkColorFilter.h +++ b/include/core/SkColorFilter.h @@ -16,6 +16,7 @@ class GrContext; class GrFragmentProcessor; class SkBitmap; +class SkRasterPipeline; /** * ColorFilters are optional objects in the drawing pipeline. When present in @@ -70,6 +71,8 @@ public: virtual void filterSpan4f(const SkPM4f src[], int count, SkPM4f result[]) const; + bool appendStages(SkRasterPipeline*) const; + enum Flags { /** If set the filter methods will not change the alpha channel of the colors. */ @@ -168,6 +171,8 @@ public: protected: SkColorFilter() {} + virtual bool onAppendStages(SkRasterPipeline*) const; + private: /* * Returns 1 if this is a single filter (not a composition of other filters), otherwise it |