aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkColorFilter.h
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2016-07-22 08:53:26 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-22 08:53:26 -0700
commit3011e337693a9786f62d8de9ac4b239ad6dbdaca (patch)
tree757e3e86b8d8918debff3d68cfa3a03b78b303a3 /include/core/SkColorFilter.h
parentd50e2401787dc5632453293b65f8255b12450b9b (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 Review-Url: https://codereview.chromium.org/2146413002
Diffstat (limited to 'include/core/SkColorFilter.h')
-rw-r--r--include/core/SkColorFilter.h5
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