Skip to content

Commit

Permalink
Drawable things
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleibow committed Jun 3, 2024
1 parent 1fbc242 commit 616bb49
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/c/sk_drawable.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ SK_C_API void sk_drawable_get_bounds (sk_drawable_t*, sk_rect_t*);
SK_C_API void sk_drawable_draw (sk_drawable_t*, sk_canvas_t*, const sk_matrix_t*);
SK_C_API sk_picture_t* sk_drawable_new_picture_snapshot(sk_drawable_t*);
SK_C_API void sk_drawable_notify_drawing_changed (sk_drawable_t*);
SK_C_API size_t sk_drawable_approximate_bytes_used(sk_drawable_t*);

SK_C_PLUS_PLUS_END_GUARD

Expand Down
4 changes: 4 additions & 0 deletions src/c/sk_drawable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,7 @@ void sk_drawable_notify_drawing_changed(sk_drawable_t* d)
{
AsDrawable(d)->notifyDrawingChanged();
}

size_t sk_drawable_approximate_bytes_used(sk_drawable_t* d) {
return AsDrawable(d)->approximateBytesUsed();
}

0 comments on commit 616bb49

Please sign in to comment.