5#ifndef FLUTTER_LIB_UI_PAINTING_IMAGE_H_
6#define FLUTTER_LIB_UI_PAINTING_IMAGE_H_
30 DEFINE_WRAPPERTYPEINFO();
37 return fml::MakeRefCounted<CanvasImage>();
42 int width() {
return image_ ? image_->width() : 0; }
44 int height() {
return image_ ? image_->height() : 0; }
50 Dart_Handle raw_image_handle);
56 sk_sp<DlImage>
image()
const {
return image_; }
68 sk_sp<DlImage> image_;
Dart_Handle toByteData(int format, Dart_Handle callback)
static void decodeImageFromPixelsSync(Dart_Handle pixels_handle, uint32_t width, uint32_t height, int32_t pixel_format, Dart_Handle raw_image_handle)
sk_sp< DlImage > image() const
static fml::RefPtr< CanvasImage > Create()
Dart_Handle CreateOuterWrapping()
void set_image(const sk_sp< DlImage > &image)
FlutterDesktopBinaryReply callback
#define FML_DCHECK(condition)
constexpr PixelFormat kLastPixelFormat
PixelFormat
The Pixel formats supported by Impeller. The naming convention denotes the usage of the component,...
#define FML_FRIEND_MAKE_REF_COUNTED(T)