Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(330)

Unified Diff: include/core/SkColorFilter.h

Issue 2146413002: Add SkRasterPipeline blitter. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Do not leak the blitter. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gyp/core.gypi ('k') | include/core/SkXfermode.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkColorFilter.h
diff --git a/include/core/SkColorFilter.h b/include/core/SkColorFilter.h
index 7b2ee7845e1099c0cb549a1d58a88aa2becac973..609550f6762409a8d0e9c29e08eb8931faf5fd59 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
« no previous file with comments | « gyp/core.gypi ('k') | include/core/SkXfermode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698