From a0821b4e41c7c608a6d0152e6145d3007a6e8488 Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Mon, 21 Aug 2017 21:58:19 +0200 Subject: [PATCH] Added the conversion member --- src/c/sk_types_priv.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/c/sk_types_priv.h b/src/c/sk_types_priv.h index 54cd006a82..cb8a3022c0 100644 --- a/src/c/sk_types_priv.h +++ b/src/c/sk_types_priv.h @@ -167,6 +167,10 @@ static inline sk_pixmap_t* ToPixmap(SkPixmap* pixmap) { return reinterpret_cast(pixmap); } +static inline const sk_pixmap_t* ToPixmap(const SkPixmap* pixmap) { + return reinterpret_cast(pixmap); +} + static inline const SkPixelSerializer* AsPixelSerializer(const sk_pixelserializer_t* cpixelserializer) { return reinterpret_cast(cpixelserializer); } -- 2.34.1