9#include "third_party/skia/include/core/SkData.h"
10#include "third_party/skia/include/core/SkImage.h"
39 sk_sp<SkImage>
skia_image()
const override {
return nullptr; }
47 bool isOpaque()
const override {
return false; }
88 size_t row_byte_count) {
Represents an image whose allocation is (usually) resident on device memory.
virtual size_t GetApproximateByteSize() const =0
virtual DlISize GetSize() const =0
virtual bool isTextureBacked() const =0
virtual bool isOpaque() const =0
If the pixel format of this image ignores alpha, this returns true. This method might conservatively ...
static sk_sp< DlImage > Make(const SkImage *image)
virtual std::shared_ptr< impeller::Texture > impeller_texture() const =0
If this display list image is meant to be used by the Impeller backend, an Impeller texture instance....
virtual bool isUIThreadSafe() const =0
If the underlying platform image held by this object has no threading requirements for the release of...
virtual sk_sp< SkImage > skia_image() const =0
If this display list image is meant to be used by the Skia backend, an SkImage instance....
SKWASM_EXPORT void dummyAPICalls()
sk_sp< flutter::DlImage > MakeImageFromTexture(SkwasmObject texture_source, int width, int height, Skwasm::Surface *surface)
__externref_t SkwasmObject
sk_sp< flutter::DlImage > MakeImageFromPicture(flutter::DisplayList *display_list, int32_t width, int32_t height)
sk_sp< flutter::DlImage > MakeImageFromPixels(SkData *data, int width, int height, PixelFormat pixel_format, size_t row_byte_count)
SkwasmObject skwasm_getAssociatedObject(void *pointer)
__externref_t SkwasmObject
unsigned int skwasm_createGlTextureFromTextureSource(SkwasmObject texture_source, int width, int height)
void skwasm_disposeAssociatedObjectOnThread(unsigned long thread_id, void *pointer)
void skwasm_setAssociatedObjectOnThread(unsigned long thread_id, void *pointer, SkwasmObject object)
static constexpr TSize MakeWH(Type width, Type height)
std::shared_ptr< const fml::Mapping > data