Flutter Engine
The Flutter Engine
Functions
SkShapers::HB Namespace Reference

Functions

SKSHAPER_API std::unique_ptr< SkShaperShaperDrivenWrapper (sk_sp< SkUnicode > unicode, sk_sp< SkFontMgr > fallback)
 
SKSHAPER_API std::unique_ptr< SkShaperShapeThenWrap (sk_sp< SkUnicode > unicode, sk_sp< SkFontMgr > fallback)
 
SKSHAPER_API std::unique_ptr< SkShaperShapeDontWrapOrReorder (sk_sp< SkUnicode > unicode, sk_sp< SkFontMgr > fallback)
 
SKSHAPER_API std::unique_ptr< SkShaper::ScriptRunIteratorScriptRunIterator (const char *utf8, size_t utf8Bytes)
 
SKSHAPER_API std::unique_ptr< SkShaper::ScriptRunIteratorScriptRunIterator (const char *utf8, size_t utf8Bytes, SkFourByteTag script)
 
SKSHAPER_API void PurgeCaches ()
 

Function Documentation

◆ PurgeCaches()

void SkShapers::HB::PurgeCaches ( )

Definition at line 1534 of file SkShaper_harfbuzz.cpp.

1534 {
1535 HBLockedFaceCache cache = get_hbFace_cache();
1536 cache.reset();
1537}
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace Enable an endless trace buffer The default is a ring buffer This is useful when very old events need to viewed For during application launch Memory usage will continue to grow indefinitely however Start app with an specific route defined on the framework flutter assets Path to the Flutter assets directory enable service port Allow the VM service to fallback to automatic port selection if binding to a specified port fails trace Trace early application lifecycle Automatically switches to an endless trace buffer trace skia Filters out all Skia trace event categories except those that are specified in this comma separated list dump skp on shader Automatically dump the skp that triggers new shader compilations This is useful for writing custom ShaderWarmUp to reduce jank By this is not enabled to reduce the overhead purge persistent cache
Definition: switches.h:191

◆ ScriptRunIterator() [1/2]

std::unique_ptr< SkShaper::ScriptRunIterator > SkShapers::HB::ScriptRunIterator ( const char *  utf8,
size_t  utf8Bytes 
)

Definition at line 1524 of file SkShaper_harfbuzz.cpp.

1524 {
1525 return std::make_unique<SkUnicodeHbScriptRunIterator>(utf8, utf8Bytes, HB_SCRIPT_UNKNOWN);
1526}

◆ ScriptRunIterator() [2/2]

std::unique_ptr< SkShaper::ScriptRunIterator > SkShapers::HB::ScriptRunIterator ( const char *  utf8,
size_t  utf8Bytes,
SkFourByteTag  script 
)

Definition at line 1527 of file SkShaper_harfbuzz.cpp.

1529 {
1530 return std::make_unique<SkUnicodeHbScriptRunIterator>(
1531 utf8, utf8Bytes, hb_script_from_iso15924_tag((hb_tag_t)script));
1532}

◆ ShapeDontWrapOrReorder()

std::unique_ptr< SkShaper > SkShapers::HB::ShapeDontWrapOrReorder ( sk_sp< SkUnicode unicode,
sk_sp< SkFontMgr fallback 
)

Definition at line 1510 of file SkShaper_harfbuzz.cpp.

1511 {
1512 if (!unicode) {
1513 return nullptr;
1514 }
1515 HBBuffer buffer(hb_buffer_create());
1516 if (!buffer) {
1517 SkDEBUGF("Could not create hb_buffer");
1518 return nullptr;
1519 }
1520 return std::make_unique<::ShapeDontWrapOrReorder>(
1521 unicode, std::move(buffer), std::move(fallback));
1522}
#define SkDEBUGF(...)
Definition: SkDebug.h:24
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace Enable an endless trace buffer The default is a ring buffer This is useful when very old events need to viewed For during application launch Memory usage will continue to grow indefinitely however Start app with an specific route defined on the framework flutter assets Path to the Flutter assets directory enable service port fallback
Definition: switches.h:154
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
Definition: switches.h:126

◆ ShaperDrivenWrapper()

std::unique_ptr< SkShaper > SkShapers::HB::ShaperDrivenWrapper ( sk_sp< SkUnicode unicode,
sk_sp< SkFontMgr fallback 
)

Definition at line 1482 of file SkShaper_harfbuzz.cpp.

1483 {
1484 if (!unicode) {
1485 return nullptr;
1486 }
1487 HBBuffer buffer(hb_buffer_create());
1488 if (!buffer) {
1489 SkDEBUGF("Could not create hb_buffer");
1490 return nullptr;
1491 }
1492 return std::make_unique<::ShaperDrivenWrapper>(
1493 unicode, std::move(buffer), std::move(fallback));
1494}

◆ ShapeThenWrap()

std::unique_ptr< SkShaper > SkShapers::HB::ShapeThenWrap ( sk_sp< SkUnicode unicode,
sk_sp< SkFontMgr fallback 
)

Definition at line 1496 of file SkShaper_harfbuzz.cpp.

1497 {
1498 if (!unicode) {
1499 return nullptr;
1500 }
1501 HBBuffer buffer(hb_buffer_create());
1502 if (!buffer) {
1503 SkDEBUGF("Could not create hb_buffer");
1504 return nullptr;
1505 }
1506 return std::make_unique<::ShapeThenWrap>(
1507 unicode, std::move(buffer), std::move(fallback));
1508}