Added the api to inform the device that the bitmap has changed
authorMatthew Leibowitz <mattleibow@live.com>
Fri, 24 Mar 2017 15:57:58 +0000 (11:57 -0400)
committerMatthew Leibowitz <mattleibow@live.com>
Fri, 24 Mar 2017 15:57:58 +0000 (11:57 -0400)
include/c/sk_bitmap.h
src/c/sk_bitmap.cpp

index 1f5835d..c56cee1 100644 (file)
@@ -53,7 +53,7 @@ SK_C_API sk_colortable_t* sk_bitmap_get_colortable(sk_bitmap_t* cbitmap);
 SK_C_API void sk_bitmap_set_pixels(sk_bitmap_t* cbitmap, void* pixels, sk_colortable_t* ctable);
 SK_C_API bool sk_bitmap_peek_pixels(sk_bitmap_t* cbitmap, sk_pixmap_t* cpixmap);
 SK_C_API bool sk_bitmap_extract_subset(sk_bitmap_t* cbitmap, sk_bitmap_t* dst, sk_irect_t* subset);
-SK_C_API bool sk_bitmap_extract_alpha(sk_bitmap_t* cbitmap, sk_bitmap_t* dst, const sk_paint_t* paint, sk_ipoint_t* offset);
+SK_C_API void sk_bitmap_notify_pixels_changed(sk_bitmap_t* cbitmap);
 
 SK_C_PLUS_PLUS_END_GUARD
 
index 10f300a..2ea5b56 100644 (file)
@@ -392,3 +392,8 @@ bool sk_bitmap_extract_alpha(sk_bitmap_t* cbitmap, sk_bitmap_t* cdst, const sk_p
     SkBitmap* dst = AsBitmap(cdst);
     return bmp->extractAlpha(dst, AsPaint(paint), AsIPoint(offset));
 }
+
+void sk_bitmap_notify_pixels_changed(sk_bitmap_t* cbitmap)
+{
+    AsBitmap(cbitmap)->notifyPixelsChanged();
+}