SK_C_PLUS_PLUS_BEGIN_GUARD
+SK_API uint8_t* sk_mask_alloc_image(size_t bytes);
+SK_API void sk_mask_free_image(void* image);
SK_API bool sk_mask_is_empty(sk_mask_t* cmask);
SK_API size_t sk_mask_compute_image_size(sk_mask_t* cmask);
SK_API size_t sk_mask_compute_total_image_size(sk_mask_t* cmask);
#include "sk_mask.h"
+uint8_t* sk_mask_alloc_image(size_t bytes) {
+ return SkMask::AllocImage(bytes);
+}
+
+void sk_mask_free_image(void* image) {
+ SkMask::FreeImage(image);
+}
+
bool sk_mask_is_empty(sk_mask_t* cmask) {
return AsMask(cmask)->isEmpty();
}