| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
| 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 // EXPERIMENTAL EXPERIMENTAL EXPERIMENTAL EXPERIMENTAL | 8 // EXPERIMENTAL EXPERIMENTAL EXPERIMENTAL EXPERIMENTAL |
| 9 // DO NOT USE -- FOR INTERNAL TESTING ONLY | 9 // DO NOT USE -- FOR INTERNAL TESTING ONLY |
| 10 | 10 |
| 11 #ifndef sk_paint_DEFINED | 11 #ifndef sk_paint_DEFINED |
| 12 #define sk_paint_DEFINED | 12 #define sk_paint_DEFINED |
| 13 | 13 |
| 14 #include "sk_types.h" | 14 #include "sk_types.h" |
| 15 | 15 |
| 16 SK_C_PLUS_PLUS_BEGIN_GUARD | 16 SK_C_PLUS_PLUS_BEGIN_GUARD |
| 17 | 17 |
| 18 sk_paint_t* sk_paint_new(); | 18 sk_paint_t* sk_paint_new(); |
| 19 void sk_paint_delete(sk_paint_t*); | 19 void sk_paint_delete(sk_paint_t*); |
| 20 |
| 20 bool sk_paint_is_antialias(const sk_paint_t*); | 21 bool sk_paint_is_antialias(const sk_paint_t*); |
| 21 void sk_paint_set_antialias(sk_paint_t*, bool); | 22 void sk_paint_set_antialias(sk_paint_t*, bool); |
| 23 |
| 22 sk_color_t sk_paint_get_color(const sk_paint_t*); | 24 sk_color_t sk_paint_get_color(const sk_paint_t*); |
| 23 void sk_paint_set_color(sk_paint_t*, sk_color_t); | 25 void sk_paint_set_color(sk_paint_t*, sk_color_t); |
| 24 | 26 |
| 27 /** |
| 28 * Set the paint's shader to the specified parameter. This will automatically c
all unref() on |
| 29 * any previous value, and call ref() on the new value. |
| 30 */ |
| 31 void sk_paint_set_shader(sk_paint_t*, sk_shader_t*); |
| 32 |
| 25 SK_C_PLUS_PLUS_END_GUARD | 33 SK_C_PLUS_PLUS_END_GUARD |
| 26 | 34 |
| 27 #endif | 35 #endif |
| OLD | NEW |