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

Unified Diff: include/c/sk_paint.h

Issue 822053002: add maskfilter to c api (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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 | « include/c/sk_maskfilter.h ('k') | include/c/sk_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/c/sk_paint.h
diff --git a/include/c/sk_paint.h b/include/c/sk_paint.h
index 92ac5d57ba364e807bf9bee33a3dedc3720bdcae..e6b5cbdb82661af41390a981635f060728b83b89 100644
--- a/include/c/sk_paint.h
+++ b/include/c/sk_paint.h
@@ -30,6 +30,12 @@ void sk_paint_set_color(sk_paint_t*, sk_color_t);
*/
void sk_paint_set_shader(sk_paint_t*, sk_shader_t*);
+/**
+ * Set the paint's maskfilter to the specified parameter. This will automatically call unref() on
+ * any previous value, and call ref() on the new value.
+ */
+void sk_paint_set_maskfilter(sk_paint_t*, sk_maskfilter_t*);
+
SK_C_PLUS_PLUS_END_GUARD
#endif
« no previous file with comments | « include/c/sk_maskfilter.h ('k') | include/c/sk_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698