diff options
author | 2014-10-08 06:04:35 -0700 | |
---|---|---|
committer | 2014-10-08 06:04:35 -0700 | |
commit | a624e87e8e10fd9dc3a34e498dd30804ceee5228 (patch) | |
tree | 6ff34095e2b07f8b36325e9c617281b21a1cf7b8 /experimental/sk_surface.h | |
parent | 7663d66681a8b695b36701c6885935c60c0531c3 (diff) |
Implement C path functions
Mainly just to familiarize myself with this code.
Review URL: https://codereview.chromium.org/633183002
Diffstat (limited to 'experimental/sk_surface.h')
-rw-r--r-- | experimental/sk_surface.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/experimental/sk_surface.h b/experimental/sk_surface.h index 4c597ce49a..e170049a4b 100644 --- a/experimental/sk_surface.h +++ b/experimental/sk_surface.h @@ -52,16 +52,17 @@ typedef struct { typedef struct sk_path_t sk_path_t; sk_path_t* sk_path_new(); +void sk_path_delete(sk_path_t*); void sk_path_move_to(sk_path_t*, float x, float y); void sk_path_line_to(sk_path_t*, float x, float y); void sk_path_quad_to(sk_path_t*, float x0, float y0, float x1, float y1); -void sk_path_get_bounds(const sk_path_t*, sk_rect_t*); +void sk_path_close(sk_path_t*); typedef struct sk_paint_t sk_paint_t; sk_paint_t* sk_paint_new(); void sk_paint_delete(sk_paint_t*); -bool sk_paint_is_antialias(sk_paint_t*); +bool sk_paint_is_antialias(const sk_paint_t*); void sk_paint_set_antialias(sk_paint_t*, bool); sk_color_t sk_paint_get_color(const sk_paint_t*); void sk_paint_set_color(sk_paint_t*, sk_color_t); |