23#ifdef SK_BUILD_FOR_IOS
28#if !defined(SK_BUILD_FOR_ANDROID) && !defined(__UCLIBC__) && !defined(_NEWLIB_VERSION)
42#ifdef SK_BUILD_FOR_IOS
64 struct stat status = {};
65 if (0 != fstat(fd, &status)) {
68 id->dev = status.st_dev;
69 id->ino = status.st_ino;
85 struct stat status = {};
86 if (0 != fstat(fd, &status)) {
89 if (!S_ISREG(status.st_mode)) {
92 if (!SkTFitsIn<size_t>(status.st_size)) {
95 size_t fileSize =
static_cast<size_t>(status.st_size);
97 void*
addr = mmap(
nullptr, fileSize, PROT_READ, MAP_PRIVATE, fd, 0);
98 if (MAP_FAILED ==
addr) {
150 ::closedir(
self.fDIR);
152 self.~SkOSFileIterData();
158 ::closedir(
self.fDIR);
165#ifdef SK_BUILD_FOR_IOS
167 if (!
self.fDIR && ios_get_path_in_bundle(
path, &
self.fPath)) {
168 self.fDIR = ::opendir(
self.fPath.c_str());
173 self.fSuffix.reset();
179 size_t suffixLen =
suffix.size();
180 size_t strLen = strlen(str);
182 return strLen >= suffixLen &&
183 memcmp(
suffix.c_str(), str + strLen - suffixLen, suffixLen) == 0;
191 while ((entry = ::readdir(
self.fDIR)) !=
nullptr) {
198 str.
append(entry->d_name);
200 if (0 == stat(str.
c_str(), &
s)) {
202 if (
s.st_mode & S_IFDIR) {
214 name->set(entry->d_name);
static bool issuffixfor(const SkString &suffix, const char str[])
bool sk_exists(const char *path, SkFILE_Flags flags)
size_t sk_qread(FILE *file, void *buffer, size_t count, size_t offset)
void sk_fmunmap(const void *addr, size_t length)
void * sk_fmmap(FILE *f, size_t *size)
bool sk_fidentical(FILE *a, FILE *b)
static bool sk_ino(FILE *a, SkFILEID *id)
void * sk_fdmmap(int fd, size_t *size)
SK_SPI void reset(const char path[], const char suffix[]=nullptr)
SK_SPI bool next(SkString *name, bool getDir=false)
static const size_t kStorageSize
void append(const char text[])
bool endsWith(const char suffixStr[]) const
const char * c_str() const
FlutterSemanticsFlag flags
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
DEF_SWITCHES_START aot vmservice shared library name
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
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 mode
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
def getDir(rootdir, target)