SK_C_API bool sk_pixmap_read_pixels(const sk_pixmap_t* cpixmap, const sk_imageinfo_t* dstInfo, void* dstPixels, size_t dstRowBytes, int srcX, int srcY);
+SK_C_API void sk_swizzle_swap_rb(uint32_t* dest, const uint32_t* src, int count);
+
SK_C_PLUS_PLUS_END_GUARD
#endif
#include "SkPixmap.h"
#include "SkBitmapScaler.h"
#include "SkImageEncoder.h"
+#include "SkSwizzle.h"
#include "sk_pixmap.h"
return AsPixmap(cpixmap)->readPixels(info, dstPixels, dstRowBytes, srcX, srcY);
}
+
+void sk_swizzle_swap_rb(uint32_t* dest, const uint32_t* src, int count)
+{
+ SkSwapRB(dest, src, count);
+}