Flutter Engine
The Flutter Engine
Classes | Functions
skottie_utils Namespace Reference

Classes

class  CustomPropertyManager
 
class  ExternalAnimationPrecompInterceptor
 
class  TextEditor
 

Functions

bool Preshape (const char *json, size_t size, SkWStream *stream, const sk_sp< SkFontMgr > &fmgr, const sk_sp< SkShapers::Factory > &sfact, const sk_sp< skresources::ResourceProvider > &rp)
 
bool Preshape (const sk_sp< SkData > &json, SkWStream *stream, const sk_sp< SkFontMgr > &fmgr, const sk_sp< SkShapers::Factory > &sfact, const sk_sp< ResourceProvider > &rp)
 

Function Documentation

◆ Preshape() [1/2]

bool skottie_utils::Preshape ( const char *  json,
size_t  size,
SkWStream stream,
const sk_sp< SkFontMgr > &  fmgr,
const sk_sp< SkShapers::Factory > &  sfact,
const sk_sp< skresources::ResourceProvider > &  rp 
)

Definition at line 442 of file TextPreshape.cpp.

445 {
446 skjson::DOM dom(json, size);
447 if (!dom.root().is<skjson::ObjectValue>()) {
448 return false;
449 }
450
451 Preshaper preshaper(rp, fmgr, sfact);
452
453 preshaper.preshape(dom.root());
454
455 stream->writeText(dom.root().toString().c_str());
456
457 return true;
458}
Definition: dom.py:1
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

◆ Preshape() [2/2]

bool skottie_utils::Preshape ( const sk_sp< SkData > &  json,
SkWStream stream,
const sk_sp< SkFontMgr > &  fmgr,
const sk_sp< SkShapers::Factory > &  sfact,
const sk_sp< ResourceProvider > &  rp 
)

Definition at line 460 of file TextPreshape.cpp.

463 {
464 return Preshape(static_cast<const char*>(json->data()), json->size(), stream, fmgr, sfact, rp);
465}
const void * data() const
Definition: SkData.h:37
size_t size() const
Definition: SkData.h:30
bool Preshape(const sk_sp< SkData > &json, SkWStream *stream, const sk_sp< SkFontMgr > &fmgr, const sk_sp< SkShapers::Factory > &sfact, const sk_sp< ResourceProvider > &rp)