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

Unified Diff: include/core/SkPaint.h

Issue 1829303002: move setshader to sk_sp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: addressing comments from #8 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
« no previous file with comments | « gm/samplerstress.cpp ('k') | include/effects/SkPerlinNoiseShader.h » ('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 21d7109cbb446ea4b077bc56c71062d8142c34bd..cb9f8102801b63f65c3e97d61d675325009e2f86 100644
--- a/include/core/SkPaint.h
+++ b/include/core/SkPaint.h
@@ -499,8 +499,10 @@ public:
* @param shader May be NULL. The shader to be installed in the paint
* @return shader
*/
- SkShader* setShader(SkShader* shader);
void setShader(sk_sp<SkShader>);
+#ifdef SK_SUPPORT_LEGACY_CREATESHADER_PTR
+ SkShader* setShader(SkShader* shader);
+#endif
/** Get the paint's colorfilter. If there is a colorfilter, its reference
count is not changed.
« no previous file with comments | « gm/samplerstress.cpp ('k') | include/effects/SkPerlinNoiseShader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698