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

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

Issue 1832223002: switch xfermodes over to sk_sp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 4 years, 8 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
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 521 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 /** Set or clear the xfermode object. 532 /** Set or clear the xfermode object.
533 <p /> 533 <p />
534 Pass NULL to clear any previous xfermode. 534 Pass NULL to clear any previous xfermode.
535 As a convenience, the parameter passed is also returned. 535 As a convenience, the parameter passed is also returned.
536 If a previous xfermode exists, its reference count is decremented. 536 If a previous xfermode exists, its reference count is decremented.
537 If xfermode is not NULL, its reference count is incremented. 537 If xfermode is not NULL, its reference count is incremented.
538 @param xfermode May be NULL. The new xfermode to be installed in the 538 @param xfermode May be NULL. The new xfermode to be installed in the
539 paint 539 paint
540 @return xfermode 540 @return xfermode
541 */ 541 */
542 void setXfermode(sk_sp<SkXfermode>);
543 #ifdef SK_SUPPORT_LEGACY_XFERMODE_PTR
542 SkXfermode* setXfermode(SkXfermode* xfermode); 544 SkXfermode* setXfermode(SkXfermode* xfermode);
543 void setXfermode(sk_sp<SkXfermode>); 545 #endif
544 546
545 /** Create an xfermode based on the specified Mode, and assign it into the 547 /** Create an xfermode based on the specified Mode, and assign it into the
546 paint, returning the mode that was set. If the Mode is SrcOver, then 548 paint, returning the mode that was set. If the Mode is SrcOver, then
547 the paint's xfermode is set to null. 549 the paint's xfermode is set to null.
548 */ 550 */
549 SkXfermode* setXfermodeMode(SkXfermode::Mode); 551 SkXfermode* setXfermodeMode(SkXfermode::Mode);
550 552
551 /** Get the paint's patheffect object. 553 /** Get the paint's patheffect object.
552 <p /> 554 <p />
553 The patheffect reference count is not affected. 555 The patheffect reference count is not affected.
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
1156 friend class GrStencilAndCoverTextContext; 1158 friend class GrStencilAndCoverTextContext;
1157 friend class GrPathRendering; 1159 friend class GrPathRendering;
1158 friend class GrTextUtils; 1160 friend class GrTextUtils;
1159 friend class GrGLPathRendering; 1161 friend class GrGLPathRendering;
1160 friend class SkScalerContext; 1162 friend class SkScalerContext;
1161 friend class SkTextBaseIter; 1163 friend class SkTextBaseIter;
1162 friend class SkCanonicalizePaint; 1164 friend class SkCanonicalizePaint;
1163 }; 1165 };
1164 1166
1165 #endif 1167 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698