16 {
17#if defined(SK_BUILD_FOR_MAC)
18 CGColorSpaceRef cs = CGDisplayCopyColorSpace(CGMainDisplayID());
19 CFDataRef dataRef = CGColorSpaceCopyICCProfile(cs);
20 const uint8_t*
data = CFDataGetBytePtr(dataRef);
21 size_t size = CFDataGetLength(dataRef);
22
24 file.write(data, size);
25
26 CFRelease(cs);
27 CFRelease(dataRef);
28 return 0;
29#elif defined(SK_BUILD_FOR_WIN)
30 DISPLAY_DEVICE dd = { sizeof(DISPLAY_DEVICE) };
32
33
34
35
36
37 for (int i = 0; EnumDisplayDevices(nullptr, i, &dd, 0); ++i) {
38 if (dd.StateFlags & DISPLAY_DEVICE_ATTACHED_TO_DESKTOP) {
39
40
41
42 HDC dc = CreateDC(nullptr, dd.DeviceName, nullptr, nullptr);
43 if (dc) {
46 if (GetICMProfile(dc, &pathLength, icmPath)) {
47
50 }
51 DeleteDC(dc);
52 }
53 }
54 }
55
56 return 0;
57#else
58 SkDebugf(
"ERROR: Unsupported platform\n");
59 return 1;
60#endif
61}
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
SK_API SkString static SkString SkStringPrintf()
const char * c_str() const
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
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