From: Matthew Leibowitz Date: Fri, 24 Mar 2017 15:57:58 +0000 (-0400) Subject: Added the api to inform the device that the bitmap has changed X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~61 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=13c2b9b4b248f741d8050a7c5947eace87ebc08c;p=platform%2Fupstream%2FlibSkiaSharp.git Added the api to inform the device that the bitmap has changed --- diff --git a/include/c/sk_bitmap.h b/include/c/sk_bitmap.h index 1f5835d..c56cee1 100644 --- a/include/c/sk_bitmap.h +++ b/include/c/sk_bitmap.h @@ -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 diff --git a/src/c/sk_bitmap.cpp b/src/c/sk_bitmap.cpp index 10f300a..2ea5b56 100644 --- a/src/c/sk_bitmap.cpp +++ b/src/c/sk_bitmap.cpp @@ -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(); +}