Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
skjson::DOM Class Referencefinal

#include <SkJSON.h>

Inheritance diagram for skjson::DOM:
SkNoncopyable

Public Member Functions

 DOM (const char *, size_t)
 
const Valueroot () const
 
void write (SkWStream *) const
 
- Public Member Functions inherited from SkNoncopyable
 SkNoncopyable ()=default
 
 SkNoncopyable (SkNoncopyable &&)=default
 
SkNoncopyableoperator= (SkNoncopyable &&)=default
 

Detailed Description

Definition at line 358 of file SkJSON.h.

Constructor & Destructor Documentation

◆ DOM()

skjson::DOM::DOM ( const char *  data,
size_t  size 
)

Definition at line 948 of file SkJSON.cpp.

949 : fAlloc(kMinChunkSize) {
950 DOMParser parser(fAlloc);
951
952 fRoot = parser.parse(data, size);
953}
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
static constexpr size_t kMinChunkSize
Definition: SkJSON.cpp:946
parser
Definition: zip.py:78
std::shared_ptr< const fml::Mapping > data
Definition: texture_gles.cc:63

Member Function Documentation

◆ root()

const Value & skjson::DOM::root ( ) const
inline

Definition at line 362 of file SkJSON.h.

362{ return fRoot; }

◆ write()

void skjson::DOM::write ( SkWStream stream) const

Definition at line 955 of file SkJSON.cpp.

955 {
956 Write(fRoot, stream);
957}

The documentation for this class was generated from the following files: