Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Unified Diff: include/core/SkPaint.h

Issue 2326173002: use expected name for setDrawLooper/getDrawLooper (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/core/SkPaint.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkPaint.h
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h
index ea7eedd65f0917764a6c9ceb39e1c3e3167bd70e..e28d2fc92d59db56603f43860cf9e23fb82f95d4 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;
« no previous file with comments | « no previous file | src/core/SkPaint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698