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

Side by Side Diff: include/core/SkPaint.h

Issue 1813123003: Reland of "switch patheffects over to sk_sp (patchset #5 id:80001 of https://codereview.chromium.or… (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: move flag into sktypes, so it is visible to both paint and other patheffect clients Created 4 years, 9 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 unified diff | Download patch
« no previous file with comments | « gyp/skia_for_android_framework_defines.gypi ('k') | include/core/SkPathEffect.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkPaint_DEFINED 8 #ifndef SkPaint_DEFINED
9 #define SkPaint_DEFINED 9 #define SkPaint_DEFINED
10 10
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 /** Set or clear the patheffect object. 554 /** Set or clear the patheffect object.
555 <p /> 555 <p />
556 Pass NULL to clear any previous patheffect. 556 Pass NULL to clear any previous patheffect.
557 As a convenience, the parameter passed is also returned. 557 As a convenience, the parameter passed is also returned.
558 If a previous patheffect exists, its reference count is decremented. 558 If a previous patheffect exists, its reference count is decremented.
559 If patheffect is not NULL, its reference count is incremented. 559 If patheffect is not NULL, its reference count is incremented.
560 @param effect May be NULL. The new patheffect to be installed in the 560 @param effect May be NULL. The new patheffect to be installed in the
561 paint 561 paint
562 @return effect 562 @return effect
563 */ 563 */
564 void setPathEffect(sk_sp<SkPathEffect>);
565 #ifdef SK_SUPPORT_LEGACY_PATHEFFECT_PTR
564 SkPathEffect* setPathEffect(SkPathEffect* effect); 566 SkPathEffect* setPathEffect(SkPathEffect* effect);
565 void setPathEffect(sk_sp<SkPathEffect>); 567 #endif
566 568
567 /** Get the paint's maskfilter object. 569 /** Get the paint's maskfilter object.
568 <p /> 570 <p />
569 The maskfilter reference count is not affected. 571 The maskfilter reference count is not affected.
570 @return the paint's maskfilter (or NULL) 572 @return the paint's maskfilter (or NULL)
571 */ 573 */
572 SkMaskFilter* getMaskFilter() const { return fMaskFilter.get(); } 574 SkMaskFilter* getMaskFilter() const { return fMaskFilter.get(); }
573 575
574 /** Set or clear the maskfilter object. 576 /** Set or clear the maskfilter object.
575 <p /> 577 <p />
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
1146 friend class GrStencilAndCoverTextContext; 1148 friend class GrStencilAndCoverTextContext;
1147 friend class GrPathRendering; 1149 friend class GrPathRendering;
1148 friend class GrTextUtils; 1150 friend class GrTextUtils;
1149 friend class GrGLPathRendering; 1151 friend class GrGLPathRendering;
1150 friend class SkScalerContext; 1152 friend class SkScalerContext;
1151 friend class SkTextBaseIter; 1153 friend class SkTextBaseIter;
1152 friend class SkCanonicalizePaint; 1154 friend class SkCanonicalizePaint;
1153 }; 1155 };
1154 1156
1155 #endif 1157 #endif
OLDNEW
« no previous file with comments | « gyp/skia_for_android_framework_defines.gypi ('k') | include/core/SkPathEffect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698