From 5acec5307c1990fe16eba5e67e1a666f645ee7be Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Thu, 27 Dec 2018 00:03:57 +0200 Subject: [PATCH] Revert "Changed API for sk_drawable.draw(): Made matrix not constant" This reverts commit 8cdd3f3790dbb78ebbbc42ff0b85711693fb5fb2. --- include/c/sk_drawable.h | 2 +- src/c/sk_drawable.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/c/sk_drawable.h b/include/c/sk_drawable.h index dc838a6eb3aa..8c3f0bf2507d 100644 --- a/include/c/sk_drawable.h +++ b/include/c/sk_drawable.h @@ -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*); diff --git a/src/c/sk_drawable.cpp b/src/c/sk_drawable.cpp index cdf384a52c6d..316469cec4d7 100644 --- a/src/c/sk_drawable.cpp +++ b/src/c/sk_drawable.cpp @@ -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) {