aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode
diff options
context:
space:
mode:
Diffstat (limited to 'samplecode')
-rw-r--r--samplecode/SampleLayers.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/samplecode/SampleLayers.cpp b/samplecode/SampleLayers.cpp
index 37dae888f9..f6c637db25 100644
--- a/samplecode/SampleLayers.cpp
+++ b/samplecode/SampleLayers.cpp
@@ -22,7 +22,6 @@
#include "SkTime.h"
#include "SkTypeface.h"
#include "SkUtils.h"
-#include "SkDrawFilter.h"
#include "SkClipOpPriv.h"
static void make_paint(SkPaint* paint, const SkMatrix& localMatrix) {
@@ -97,20 +96,6 @@ static void test_fade(SkCanvas* canvas) {
canvas->drawRect(r, paint);
}
-class RedFilter : public SkDrawFilter {
-public:
- bool filter(SkPaint* p, SkDrawFilter::Type) override {
- fColor = p->getColor();
- if (fColor == SK_ColorRED) {
- p->setColor(SK_ColorGREEN);
- }
- return true;
- }
-
-private:
- SkColor fColor;
-};
-
class LayersView : public SkView {
public:
LayersView() {}