Flutter Engine
The Flutter Engine
Functions
data.cpp File Reference
#include "export.h"
#include "third_party/skia/include/core/SkData.h"

Go to the source code of this file.

Functions

SKWASM_EXPORT SkDataskData_create (size_t size)
 
SKWASM_EXPORT void * skData_getPointer (SkData *data)
 
SKWASM_EXPORT const void * skData_getConstPointer (SkData *data)
 
SKWASM_EXPORT size_t skData_getSize (SkData *data)
 
SKWASM_EXPORT void skData_dispose (SkData *data)
 

Function Documentation

◆ skData_create()

SKWASM_EXPORT SkData * skData_create ( size_t  size)

Definition at line 9 of file data.cpp.

9 {
11}
static sk_sp< SkData > MakeUninitialized(size_t length)
Definition: SkData.cpp:116
T * release()
Definition: SkRefCnt.h:324
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition: switches.h:259

◆ skData_dispose()

SKWASM_EXPORT void skData_dispose ( SkData data)

Definition at line 25 of file data.cpp.

25 {
26 return data->unref();
27}
std::shared_ptr< const fml::Mapping > data
Definition: texture_gles.cc:63

◆ skData_getConstPointer()

SKWASM_EXPORT const void * skData_getConstPointer ( SkData data)

Definition at line 17 of file data.cpp.

17 {
18 return data->data();
19}

◆ skData_getPointer()

SKWASM_EXPORT void * skData_getPointer ( SkData data)

Definition at line 13 of file data.cpp.

13 {
14 return data->writable_data();
15}

◆ skData_getSize()

SKWASM_EXPORT size_t skData_getSize ( SkData data)

Definition at line 21 of file data.cpp.

21 {
22 return data->size();
23}