26static constexpr SkGlyphID kMaximumGlyphIndex = UINT16_MAX;
34 const size_t streamSize =
stream.bytesWritten();
74 for (uint16_t
i = 14;
i < 0xFE; ++
i) {
89 for (uint16_t v : glyphsInSubset) {
93 std::min<SkGlyphID>(0xFFFF, lastGlyphID));
95 char expectedResult[] =
103<0005> <0007> <0027>\n\
104<000B> <000D> <0035>\n\
105<00FE> <00FF> <1010>\n\
106<0100> <0101> <1012>\n\
116 std::min<SkGlyphID>(0x00FF, lastGlyphID));
118 char expectedResultChop1[] =
124<000B> <000D> <0035>\n\
125<00FE> <00FF> <1010>\n\
135 std::min<SkGlyphID>(0x00FE, lastGlyphID));
137 char expectedResultChop2[] =
149 std::min<SkGlyphID>(0x110, lastGlyphID));
151 char expectedResultSingleBytes[] =
161 expectedResultSingleBytes,
164 glyphToUnicode.
reset();
165 glyphsInSubset.reset();
177 glyphsInSubset.push_back(0x2C);
178 glyphsInSubset.push_back(0x44);
179 glyphsInSubset.push_back(0x4F);
180 glyphsInSubset.push_back(0x51);
181 glyphsInSubset.push_back(0x56);
182 glyphsInSubset.push_back(0x57);
185 for (uint16_t v : glyphsInSubset) {
189 std::min<SkGlyphID>(0xFFFF, lastGlyphID));
191 char expectedResult2[] =
199<0056> <0057> <0073>\n\
void SkPDFAppendCmapSections(const SkUnichar *glyphToUnicode, const SkPDFGlyphUse *subset, SkDynamicMemoryWStream *cmap, bool multiByteGlyphs, SkGlyphID firstGlyphID, SkGlyphID lastGlyphID)
constexpr uint16_t SkToU16(S x)
#define DEF_TEST(name, reporter)
#define REPORTER_ASSERT(r, cond,...)
size_t bytesWritten() const override
void push_back(const T &v)
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
std::shared_ptr< const fml::Mapping > data