projects
/
platform
/
upstream
/
libSkiaSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4db29cf
)
Added the conversion member
author
Matthew Leibowitz
<mattleibow@live.com>
Mon, 21 Aug 2017 19:58:19 +0000
(21:58 +0200)
committer
Matthew Leibowitz
<mattleibow@live.com>
Mon, 21 Aug 2017 19:58:19 +0000
(21:58 +0200)
src/c/sk_types_priv.h
patch
|
blob
|
history
diff --git
a/src/c/sk_types_priv.h
b/src/c/sk_types_priv.h
index 54cd006a82a6ab66b2c8f8848e794f044378e588..cb8a3022c0d07282c6ac4e1d5a0c305c88f86c4d 100644
(file)
--- 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<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);
}