SkPaintFilterCanvas cleanup

All external clients have been updated, we can now remove the
transitional kludges.

BUG=skia:4782
R=reed@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1574303003

Review URL: https://codereview.chromium.org/1574303003
This commit is contained in:
fmalita 2016-01-12 12:14:10 -08:00 committed by Commit bot
parent 8d30dae5a0
commit 61a237e319
2 changed files with 3 additions and 9 deletions

View File

@ -16,6 +16,8 @@ class SkCanvas;
class SkPaint;
/**
* DEPRECATED - use SkPaintFilterCanvas instead.
*
* Right before something is being draw, filter() is called with the
* paint. The filter may modify the paint as it wishes, which will then be
* used for the actual drawing. Note: this modification only lasts for the

View File

@ -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;