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

Unified 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: 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 side-by-side diff with in-line comments
Download patch
Index: include/core/SkPaint.h
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h
index cb9f8102801b63f65c3e97d61d675325009e2f86..1a80ce33b05b92b64df167cf7b6cd663f4bd8f93 100644
--- a/include/core/SkPaint.h
+++ b/include/core/SkPaint.h
@@ -539,8 +539,10 @@ public:
paint
@return xfermode
*/
- SkXfermode* setXfermode(SkXfermode* xfermode);
void setXfermode(sk_sp<SkXfermode>);
+#ifdef SK_SUPPORT_LEGACY_XFERMODE_PTR
+ SkXfermode* setXfermode(SkXfermode* xfermode);
+#endif
/** Create an xfermode based on the specified Mode, and assign it into the
paint, returning the mode that was set. If the Mode is SrcOver, then
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/core/SkShader.h » ('j') | src/core/SkComposeShader.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698