diff options
author | 2018-06-27 14:46:46 -0400 | |
---|---|---|
committer | 2018-07-12 02:36:44 +0000 | |
commit | 2c312c4f58f9c151acab8ca2dd0d39fb77c5e74a (patch) | |
tree | 527d8ef60903f99e54cc83615a051c8b65e046bb /src/gpu/text/GrTextUtils.cpp | |
parent | 0859252397e0a771669d21d173a8a20f814b7ca0 (diff) |
Remove SkDrawFilter.
Change-Id: I0204a9522e828c87bb7c6c20ae34ce51161442af
Reviewed-on: https://skia-review.googlesource.com/137895
Reviewed-by: Herb Derby <herb@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'src/gpu/text/GrTextUtils.cpp')
-rw-r--r-- | src/gpu/text/GrTextUtils.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/gpu/text/GrTextUtils.cpp b/src/gpu/text/GrTextUtils.cpp index bd3647e7ad..6f043e108f 100644 --- a/src/gpu/text/GrTextUtils.cpp +++ b/src/gpu/text/GrTextUtils.cpp @@ -7,7 +7,6 @@ #include "GrTextUtils.h" #include "GrContext.h" -#include "SkDrawFilter.h" #include "SkGlyphCache.h" #include "SkGr.h" #include "SkPaint.h" @@ -27,21 +26,8 @@ bool GrTextUtils::RunPaint::modifyForRun(std::function<void(SkPaint*)> paintModF if (!fModifiedPaint.isValid()) { fModifiedPaint.init(fOriginalPaint->skPaint()); fPaint = fModifiedPaint.get(); - } else if (fFilter) { - // We have to reset before applying the run because the filter could have arbitrary - // changed the paint. - *fModifiedPaint.get() = fOriginalPaint->skPaint(); } paintModFunc(fModifiedPaint.get()); - - if (fFilter) { - if (!fFilter->filter(fModifiedPaint.get(), SkDrawFilter::kText_Type)) { - // A false return from filter() means we should abort the current draw. - return false; - } - // The draw filter could have changed either the paint color or color filter. - this->initFilteredColor(); - } return true; } |