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

Unified Diff: src/effects/SkAlphaThresholdFilter.cpp

Issue 1499443002: SkImageShaderFactoryToName SkAlphaThresholdFilterFactoryToName (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-12-02 (Wednesday) 16:18:52 EST Created 5 years 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
Index: src/effects/SkAlphaThresholdFilter.cpp
diff --git a/src/effects/SkAlphaThresholdFilter.cpp b/src/effects/SkAlphaThresholdFilter.cpp
index e6f1f088cbae9f1ca8775643ade00ad1f9bacaa6..c68133a41cc3bbf90069bc6faef3f2edeb6add8b 100644
--- a/src/effects/SkAlphaThresholdFilter.cpp
+++ b/src/effects/SkAlphaThresholdFilter.cpp
@@ -6,6 +6,7 @@
*/
#include "SkAlphaThresholdFilter.h"
+#include "SkAlphaThresholdFilterImpl.h"
#include "SkBitmap.h"
#include "SkDevice.h"
#include "SkReadBuffer.h"
@@ -15,31 +16,6 @@
#include "GrDrawContext.h"
#endif
-class SK_API SkAlphaThresholdFilterImpl : public SkImageFilter {
-public:
- SkAlphaThresholdFilterImpl(const SkRegion& region, SkScalar innerThreshold,
- SkScalar outerThreshold, SkImageFilter* input);
-
- SK_TO_STRING_OVERRIDE()
- SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkAlphaThresholdFilterImpl)
-
-protected:
- void flatten(SkWriteBuffer&) const override;
-
- bool onFilterImage(Proxy*, const SkBitmap& src, const Context&,
- SkBitmap* result, SkIPoint* offset) const override;
-#if SK_SUPPORT_GPU
- bool asFragmentProcessor(GrFragmentProcessor**, GrTexture*, const SkMatrix&,
- const SkIRect& bounds) const override;
-#endif
-
-private:
- SkRegion fRegion;
- SkScalar fInnerThreshold;
- SkScalar fOuterThreshold;
- typedef SkImageFilter INHERITED;
-};
-
SkImageFilter* SkAlphaThresholdFilter::Create(const SkRegion& region,
SkScalar innerThreshold,
SkScalar outerThreshold,
« gyp/effects.gypi ('K') | « gyp/ports.gyp ('k') | src/effects/SkAlphaThresholdFilterImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698