Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
images_impeller.cc File Reference
#include "flutter/skwasm/images.h"
#include "flutter/display_list/display_list.h"
#include "flutter/display_list/image/dl_image.h"
#include "third_party/skia/include/core/SkData.h"
#include "third_party/skia/include/core/SkImage.h"

Go to the source code of this file.

Namespaces

namespace  Skwasm
 

Functions

SKWASM_EXPORT void dummyAPICalls ()
 
sk_sp< flutter::DlImageSkwasm::MakeImageFromPicture (flutter::DisplayList *display_list, int32_t width, int32_t height)
 
sk_sp< flutter::DlImageSkwasm::MakeImageFromTexture (SkwasmObject texture_source, int width, int height, Skwasm::Surface *surface)
 
sk_sp< flutter::DlImageSkwasm::MakeImageFromPixels (SkData *data, int width, int height, PixelFormat pixel_format, size_t row_byte_count)
 

Function Documentation

◆ dummyAPICalls()

SKWASM_EXPORT void dummyAPICalls ( )

Definition at line 12 of file images_impeller.cc.

12 {
13 // TODO(jacksongardner):
14 // This function is just here so that we have references to these API
15 // functions in the build. If we don't reference them, they get LTO'd out and
16 // then emscripten gets fails to build the javascript support library. These
17 // all will eventually be actually used when we implement proper image
18 // support, at which time we can just remove this function entirely.
19 // https://github.com/flutter/flutter/issues/175371
20 SkwasmObject object = __builtin_wasm_ref_null_extern();
21 skwasm_setAssociatedObjectOnThread(0, nullptr, object);
25}
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)

References skwasm_createGlTextureFromTextureSource(), skwasm_disposeAssociatedObjectOnThread(), skwasm_getAssociatedObject(), and skwasm_setAssociatedObjectOnThread().