Flutter Engine
The Flutter Engine
|
#include <emscripten.h>
#include <emscripten/bind.h>
#include "include/core/SkColor.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkSpan.h"
#include "include/private/base/SkMalloc.h"
#include <memory>
Go to the source code of this file.
Classes | |
struct | JSArrayType< T > |
class | JSSpan< T > |
Macros | |
#define | SPECIALIZE_JSARRAYTYPE(type, name) |
Typedefs | |
using | JSColor = int32_t |
using | JSArray = emscripten::val |
using | JSObject = emscripten::val |
using | JSString = emscripten::val |
using | SkPathOrNull = emscripten::val |
using | TypedArray = emscripten::val |
using | Uint8Array = emscripten::val |
using | Uint16Array = emscripten::val |
using | Uint32Array = emscripten::val |
using | Float32Array = emscripten::val |
using | WASMPointerF32 = uintptr_t |
using | WASMPointerI32 = uintptr_t |
using | WASMPointerU8 = uintptr_t |
using | WASMPointerU16 = uintptr_t |
using | WASMPointerU32 = uintptr_t |
using | WASMPointer = uintptr_t |
Functions | |
SPECIALIZE_JSARRAYTYPE (int8_t, "Int8Array") | |
SPECIALIZE_JSARRAYTYPE (uint8_t, "Uint8Array") | |
SPECIALIZE_JSARRAYTYPE (int16_t, "Int16Array") | |
SPECIALIZE_JSARRAYTYPE (uint16_t, "Uint16Array") | |
SPECIALIZE_JSARRAYTYPE (int32_t, "Int32Array") | |
SPECIALIZE_JSARRAYTYPE (uint32_t, "Uint32Array") | |
SPECIALIZE_JSARRAYTYPE (float, "Float32Array") | |
template<typename T > | |
TypedArray | MakeTypedArray (int count, const T src[]) |
SkColor4f | ptrToSkColor4f (WASMPointerF32) |
std::unique_ptr< SkCodec > | DecodeImageData (sk_sp< SkData >) |
Definition at line 51 of file WasmCommon.h.
using Float32Array = emscripten::val |
Definition at line 35 of file WasmCommon.h.
using JSArray = emscripten::val |
Definition at line 27 of file WasmCommon.h.
using JSColor = int32_t |
Definition at line 26 of file WasmCommon.h.
using JSObject = emscripten::val |
Definition at line 28 of file WasmCommon.h.
using JSString = emscripten::val |
Definition at line 29 of file WasmCommon.h.
using SkPathOrNull = emscripten::val |
Definition at line 30 of file WasmCommon.h.
using TypedArray = emscripten::val |
Definition at line 31 of file WasmCommon.h.
using Uint16Array = emscripten::val |
Definition at line 33 of file WasmCommon.h.
using Uint32Array = emscripten::val |
Definition at line 34 of file WasmCommon.h.
using Uint8Array = emscripten::val |
Definition at line 32 of file WasmCommon.h.
using WASMPointer = uintptr_t |
Definition at line 49 of file WasmCommon.h.
using WASMPointerF32 = uintptr_t |
Definition at line 44 of file WasmCommon.h.
using WASMPointerI32 = uintptr_t |
Definition at line 45 of file WasmCommon.h.
using WASMPointerU16 = uintptr_t |
Definition at line 47 of file WasmCommon.h.
using WASMPointerU32 = uintptr_t |
Definition at line 48 of file WasmCommon.h.
using WASMPointerU8 = uintptr_t |
Definition at line 46 of file WasmCommon.h.
Definition at line 167 of file canvaskit_bindings.cpp.
TypedArray MakeTypedArray | ( | int | count, |
const T | src[] | ||
) |
Create a typed-array (in the JS heap) and initialize it with the provided data (from the wasm heap).
Definition at line 72 of file WasmCommon.h.
SkColor4f ptrToSkColor4f | ( | WASMPointerF32 | cPtr | ) |
Definition at line 219 of file canvaskit_bindings.cpp.
SPECIALIZE_JSARRAYTYPE | ( | float | , |
"Float32Array" | |||
) |
SPECIALIZE_JSARRAYTYPE | ( | int16_t | , |
"Int16Array" | |||
) |
SPECIALIZE_JSARRAYTYPE | ( | int32_t | , |
"Int32Array" | |||
) |
SPECIALIZE_JSARRAYTYPE | ( | int8_t | , |
"Int8Array" | |||
) |
SPECIALIZE_JSARRAYTYPE | ( | uint16_t | , |
"Uint16Array" | |||
) |
SPECIALIZE_JSARRAYTYPE | ( | uint32_t | , |
"Uint32Array" | |||
) |
SPECIALIZE_JSARRAYTYPE | ( | uint8_t | , |
"Uint8Array" | |||
) |