Skip to content

Commit

Permalink
Revert "Changed API for sk_drawable.draw(): Made matrix not constant"
Browse files Browse the repository at this point in the history
This reverts commit 8cdd3f3.
  • Loading branch information
mattleibow committed Dec 26, 2018
1 parent 1277dec commit 5acec53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/c/sk_drawable.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ typedef struct sk_drawable_t sk_drawable_t;
SK_C_API void sk_drawable_unref (sk_drawable_t*);
SK_C_API uint32_t sk_drawable_get_generation_id (sk_drawable_t*);
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*, sk_matrix_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*);

Expand Down
2 changes: 1 addition & 1 deletion src/c/sk_drawable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void sk_drawable_get_bounds(sk_drawable_t* d, sk_rect_t* rect)
*rect = ToRect(AsDrawable(d)->getBounds());
}

void sk_drawable_draw(sk_drawable_t* d, sk_canvas_t* c, sk_matrix_t* matrix)
void sk_drawable_draw(sk_drawable_t* d, sk_canvas_t* c, const sk_matrix_t* matrix)
{
SkMatrix m;
if (matrix) {
Expand Down

0 comments on commit 5acec53

Please sign in to comment.