diff options
author | 2016-09-11 05:40:31 -0700 | |
---|---|---|
committer | 2016-09-11 05:40:31 -0700 | |
commit | 46f2d0ad0d0e4f4cf0e7d6f158b3fb9fe4f615fa (patch) | |
tree | 48161200c6632fa8a6dae2eca652e5cca758fb27 /include/core/SkPaint.h | |
parent | dddbbda3f38e2d8c375dffac7a5d32ef400198df (diff) |
use expected name for setDrawLooper/getDrawLooper
Needed for future pipe cl.
Next cl should be to guard the looper entirely (since its deprecated)
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2326173002
TBR=
Review-Url: https://codereview.chromium.org/2326173002
Diffstat (limited to 'include/core/SkPaint.h')
-rw-r--r-- | include/core/SkPaint.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h index ea7eedd65f..e28d2fc92d 100644 --- a/include/core/SkPaint.h +++ b/include/core/SkPaint.h @@ -653,19 +653,18 @@ public: * Return the paint's SkDrawLooper (if any). Does not affect the looper's * reference count. */ - SkDrawLooper* getLooper() const { return fLooper.get(); } - + SkDrawLooper* getDrawLooper() const { return fDrawLooper.get(); } + SkDrawLooper* getLooper() const { return fDrawLooper.get(); } /** * Set or clear the looper object. * <p /> * Pass NULL to clear any previous looper. - * As a convenience, the parameter passed is also returned. * If a previous looper exists in the paint, its reference count is * decremented. If looper is not NULL, its reference count is * incremented. * @param looper May be NULL. The new looper to be installed in the paint. - * @return looper */ + void setDrawLooper(sk_sp<SkDrawLooper>); #ifdef SK_SUPPORT_LEGACY_MINOR_EFFECT_PTR SkDrawLooper* setLooper(SkDrawLooper* looper); #endif @@ -1095,7 +1094,7 @@ private: sk_sp<SkMaskFilter> fMaskFilter; sk_sp<SkColorFilter> fColorFilter; sk_sp<SkRasterizer> fRasterizer; - sk_sp<SkDrawLooper> fLooper; + sk_sp<SkDrawLooper> fDrawLooper; sk_sp<SkImageFilter> fImageFilter; SkScalar fTextSize; |