Index: include/utils/SkPaintFilterCanvas.h |
diff --git a/include/utils/SkPaintFilterCanvas.h b/include/utils/SkPaintFilterCanvas.h |
index 35e322175290b333901bc06fd94d8e58f222e48a..909cf3b987de9ab681b373ae3f9455bb76ca5232 100644 |
--- a/include/utils/SkPaintFilterCanvas.h |
+++ b/include/utils/SkPaintFilterCanvas.h |
@@ -58,15 +58,7 @@ protected: |
* To also filter encapsulated paints (e.g. SkPicture, SkTextBlob), clients may need to |
* override the relevant methods (i.e. drawPicture, drawTextBlob). |
*/ |
- virtual bool onFilter(SkTCopyOnFirstWrite<SkPaint>* paint, Type type) const { |
- if (*paint) { |
- this->onFilterPaint(paint->writable(), type); |
- } |
- return true; |
- } |
- |
- // DEPRECATED - do not use |
- virtual void onFilterPaint(SkPaint*, Type) const { } |
+ virtual bool onFilter(SkTCopyOnFirstWrite<SkPaint>* paint, Type type) const = 0; |
void onDrawPaint(const SkPaint&) override; |
void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPaint&) override; |