Added the conversion member
authorMatthew Leibowitz <mattleibow@live.com>
Mon, 21 Aug 2017 19:58:19 +0000 (21:58 +0200)
committerMatthew Leibowitz <mattleibow@live.com>
Mon, 21 Aug 2017 19:58:19 +0000 (21:58 +0200)
src/c/sk_types_priv.h

index 54cd006a82a6ab66b2c8f8848e794f044378e588..cb8a3022c0d07282c6ac4e1d5a0c305c88f86c4d 100644 (file)
@@ -167,6 +167,10 @@ static inline sk_pixmap_t* ToPixmap(SkPixmap* pixmap) {
     return reinterpret_cast<sk_pixmap_t*>(pixmap);
 }
 
+static inline const sk_pixmap_t* ToPixmap(const SkPixmap* pixmap) {
+    return reinterpret_cast<const sk_pixmap_t*>(pixmap);
+}
+
 static inline const SkPixelSerializer* AsPixelSerializer(const sk_pixelserializer_t* cpixelserializer) {
     return reinterpret_cast<const SkPixelSerializer*>(cpixelserializer);
 }