Flutter Engine
The Flutter Engine
Namespaces | Typedefs | Functions
skwasm_support.h File Reference
#include <emscripten/threading.h>
#include <cinttypes>
#include "third_party/skia/include/core/SkPicture.h"

Go to the source code of this file.

Namespaces

namespace  Skwasm
 

Typedefs

using SkwasmObject = __externref_t
 

Functions

void skwasm_setAssociatedObjectOnThread (unsigned long threadId, void *pointer, SkwasmObject object)
 
SkwasmObject skwasm_getAssociatedObject (void *pointer)
 
void skwasm_disposeAssociatedObjectOnThread (unsigned long threadId, void *pointer)
 
void skwasm_registerMessageListener (pthread_t threadId)
 
void skwasm_syncTimeOriginForThread (pthread_t threadId)
 
void skwasm_dispatchRenderPictures (unsigned long threadId, Skwasm::Surface *surface, sk_sp< SkPicture > *pictures, int count, uint32_t callbackId)
 
uint32_t skwasm_createOffscreenCanvas (int width, int height)
 
void skwasm_resizeCanvas (uint32_t contextHandle, int width, int height)
 
SkwasmObject skwasm_captureImageBitmap (uint32_t contextHandle, int width, int height, SkwasmObject imagePromises)
 
void skwasm_resolveAndPostImages (Skwasm::Surface *surface, SkwasmObject imagePromises, double rasterStart, uint32_t callbackId)
 
unsigned int skwasm_createGlTextureFromTextureSource (SkwasmObject textureSource, int width, int height)
 

Typedef Documentation

◆ SkwasmObject

using SkwasmObject = __externref_t

Definition at line 16 of file skwasm_support.h.

Function Documentation

◆ skwasm_captureImageBitmap()

SkwasmObject skwasm_captureImageBitmap ( uint32_t  contextHandle,
int  width,
int  height,
SkwasmObject  imagePromises 
)

◆ skwasm_createGlTextureFromTextureSource()

unsigned int skwasm_createGlTextureFromTextureSource ( SkwasmObject  textureSource,
int  width,
int  height 
)

◆ skwasm_createOffscreenCanvas()

uint32_t skwasm_createOffscreenCanvas ( int  width,
int  height 
)

◆ skwasm_dispatchRenderPictures()

void skwasm_dispatchRenderPictures ( unsigned long  threadId,
Skwasm::Surface surface,
sk_sp< SkPicture > *  pictures,
int  count,
uint32_t  callbackId 
)

◆ skwasm_disposeAssociatedObjectOnThread()

void skwasm_disposeAssociatedObjectOnThread ( unsigned long  threadId,
void *  pointer 
)

◆ skwasm_getAssociatedObject()

SkwasmObject skwasm_getAssociatedObject ( void *  pointer)

◆ skwasm_registerMessageListener()

void skwasm_registerMessageListener ( pthread_t  threadId)

◆ skwasm_resizeCanvas()

void skwasm_resizeCanvas ( uint32_t  contextHandle,
int  width,
int  height 
)

◆ skwasm_resolveAndPostImages()

void skwasm_resolveAndPostImages ( Skwasm::Surface surface,
SkwasmObject  imagePromises,
double  rasterStart,
uint32_t  callbackId 
)

◆ skwasm_setAssociatedObjectOnThread()

void skwasm_setAssociatedObjectOnThread ( unsigned long  threadId,
void *  pointer,
SkwasmObject  object 
)

◆ skwasm_syncTimeOriginForThread()

void skwasm_syncTimeOriginForThread ( pthread_t  threadId)