Home
last modified time | relevance | path

Searched refs:strike (Results 1 – 25 of 119) sorted by relevance

12345

/third_party/skia/src/core/
DSkStrikeCache.cpp38 sk_sp<SkStrike> strike = this->internalFindStrikeOrNull(strikeSpec.descriptor()); in findOrCreateStrike() local
39 if (strike == nullptr) { in findOrCreateStrike()
40 strike = this->internalCreateStrike(strikeSpec); in findOrCreateStrike()
43 return strike; in findOrCreateStrike()
63 auto visitor = [&counter](const SkStrike& strike) { in Dump() argument
64 const SkScalerContextRec& rec = strike.fScalerCache.getScalerContext()->getRec(); in Dump()
92 auto visitor = [&dump](const SkStrike& strike) { in DumpMemoryStatistics() argument
93 const SkTypeface* face = strike.fScalerCache.getScalerContext()->getTypeface(); in DumpMemoryStatistics()
94 const SkScalerContextRec& rec = strike.fScalerCache.getScalerContext()->getRec(); in DumpMemoryStatistics()
106 "%s/%s_%d/%p", gGlyphCacheDumpName, fontName.c_str(), rec.fFontID, &strike); in DumpMemoryStatistics()
[all …]
DSkGlyphRunPainter.cpp106 auto strike = strikeSpec.findOrCreateStrike(); in drawForBitmapDevice() local
109 strike->prepareForPathDrawing(&fDrawable, &fRejects); in drawForBitmapDevice()
124 auto strike = strikeSpec.findOrCreateStrike(); in drawForBitmapDevice() local
127 fRejects.source(), drawOrigin, deviceMatrix, strike->roundingSpec()); in drawForBitmapDevice()
128 strike->prepareForDrawingMasksCPU(&fDrawable); in drawForBitmapDevice()
178 auto strike = strikeSpec.findOrCreateStrike(); in drawForBitmapDevice() local
182 fRejects.source(), drawOrigin, deviceMatrix, strike->roundingSpec()); in drawForBitmapDevice()
184 strike->prepareForDrawingMasksCPU(&fDrawable); in drawForBitmapDevice()
257 SkScopedStrikeForGPU strike = strikeSpec.findOrCreateScopedStrike(fStrikeCache); in processGlyphRun() local
263 strike->prepareForSDFTDrawing(&fDrawable, &fRejects); in processGlyphRun()
[all …]
DSkRemoteGlyphCache.cpp647 fRemoteStrikesToSend.foreach ([&](RemoteStrike* strike) { in writeStrikeData() argument
648 if (strike->hasPendingGlyphs()) { in writeStrikeData()
651 strike->resetScalerContext(); in writeStrikeData()
670 [&](RemoteStrike* strike) { in writeStrikeData() argument
671 if (strike->hasPendingGlyphs()) { in writeStrikeData()
672 strike->writePendingGlyphs(&serializer); in writeStrikeData()
673 strike->resetScalerContext(); in writeStrikeData()
675 auto it = fDescToRemoteStrike.find(&strike->getDescriptor()); in writeStrikeData()
677 SkASSERT(it->second.get() == strike); in writeStrikeData()
679 msg.append(strike->getDescriptor().dumpRec()); in writeStrikeData()
[all …]
DSkGlyphRunPainter.h143 sk_sp<SkStrike>&& strike) = 0;
146 sk_sp<SkStrike>&& strike,
154 sk_sp<SkStrike>&& strike,
/third_party/flutter/skia/src/gpu/text/
DGrStrikeCache.h77 static const SkDescriptor& GetKey(const GrTextStrike& strike) { in GetKey() argument
78 return *strike.fFontScalerKey.getDesc(); in GetKey()
103 void setStrikeToPreserve(GrTextStrike* strike) { fPreserveStrike = strike; } in setStrikeToPreserve() argument
110 sk_sp<GrTextStrike> strike = sk_ref_sp(fCache.find(desc)); in getStrike() local
111 if (!strike) { in getStrike()
112 strike = this->generateStrike(desc); in getStrike()
114 return strike; in getStrike()
126 sk_sp<GrTextStrike> strike = sk_ref_sp(new GrTextStrike(desc)); in generateStrike() local
127 fCache.add(strike.get()); in generateStrike()
128 return strike; in generateStrike()
DGrStrikeCache.cpp46 GrTextStrike* strike = &*iter; in HandleEviction() local
47 strike->removeID(id); in HandleEviction()
51 if (strike != grStrikeCache->fPreserveStrike && 0 == strike->fAtlasedGlyphs) { in HandleEviction()
52 grStrikeCache->fCache.remove(GrTextStrike::GetKey(*strike)); in HandleEviction()
53 strike->fIsAbandoned = true; in HandleEviction()
54 strike->unref(); in HandleEviction()
DGrTextBlobVertexRegenerator.cpp160 if (fSubRun->strike()->isAbandoned()) { in VertexRegenerator()
178 sk_sp<GrTextStrike> strike; in doRegen() local
190 strike = strikeSpec.findOrCreateGrStrike(fGlyphCache); in doRegen()
192 strike = fSubRun->refStrike(); in doRegen()
211 fBlob->fGlyphs[glyphOffset] = strike->getGlyph(id, fLazyStrike->get()); in doRegen()
220 code = strike->addGlyphToAtlas(fResourceProvider, fUploadTarget, fGlyphCache, in doRegen()
260 fSubRun->setStrike(std::move(strike)); in doRegen()
/third_party/freetype/src/sfnt/
Dttbdf.c88 FT_Byte* strike; in tt_face_load_bdf_props() local
105 strike = p + count * 4; in tt_face_load_bdf_props()
116 strike += 10 * num_items; in tt_face_load_bdf_props()
121 if ( strike > bdf->strings ) in tt_face_load_bdf_props()
148 FT_Byte* strike; in tt_face_find_bdf_prop() local
163 strike = p + 4 * count; in tt_face_find_bdf_prop()
186 strike += 10 * _count; in tt_face_find_bdf_prop()
191 p = strike; in tt_face_find_bdf_prop()
/third_party/skia/third_party/externals/freetype/src/sfnt/
Dttbdf.c88 FT_Byte* strike; in tt_face_load_bdf_props() local
105 strike = p + count * 4; in tt_face_load_bdf_props()
116 strike += 10 * num_items; in tt_face_load_bdf_props()
121 if ( strike > bdf->strings ) in tt_face_load_bdf_props()
148 FT_Byte* strike; in tt_face_find_bdf_prop() local
163 strike = p + 4 * count; in tt_face_find_bdf_prop()
186 strike += 10 * _count; in tt_face_find_bdf_prop()
191 p = strike; in tt_face_find_bdf_prop()
/third_party/flutter/skia/third_party/externals/freetype/src/sfnt/
Dttbdf.c89 FT_Byte* strike; in tt_face_load_bdf_props() local
106 strike = p + count * 4; in tt_face_load_bdf_props()
117 strike += 10 * num_items; in tt_face_load_bdf_props()
122 if ( strike > bdf->strings ) in tt_face_load_bdf_props()
149 FT_Byte* strike; in tt_face_find_bdf_prop() local
164 strike = p + 4 * count; in tt_face_find_bdf_prop()
187 strike += 10 * _count; in tt_face_find_bdf_prop()
192 p = strike; in tt_face_find_bdf_prop()
/third_party/skia/src/gpu/text/
DGrStrikeCache.cpp29 sk_sp<GrTextStrike> strike = sk_make_sp<GrTextStrike>(strikeSpec); in generateStrike() local
30 fCache.set(strike); in generateStrike()
31 return strike; in generateStrike()
34 const SkDescriptor& GrStrikeCache::HashTraits::GetKey(const sk_sp<GrTextStrike>& strike) { in GetKey() argument
35 return strike->fStrikeSpec.descriptor(); in GetKey()
DGrTextBlob.h252 sk_sp<SkStrike>&& strike,
257 sk_sp<SkStrike>&& strike) override;
262 sk_sp<SkStrike>&& strike,
268 sk_sp<SkStrike>&& strike,
307 sk_sp<SkStrike>&& strike) override;
309 sk_sp<SkStrike>&& strike,
315 sk_sp<SkStrike>&& strike,
DGrTextBlob.cpp316 GlyphVector(sk_sp<SkStrike>&& strike, SkSpan<Variant> glyphs);
319 sk_sp<SkStrike>&& strike, SkSpan<SkGlyphVariant> glyphs, GrSubRunAllocator* alloc);
343 GlyphVector::GlyphVector(sk_sp<SkStrike>&& strike, SkSpan<Variant> glyphs) in GlyphVector() argument
344 : fStrike{std::move(strike)} in GlyphVector()
350 sk_sp<SkStrike>&& strike, SkSpan<SkGlyphVariant> glyphs, GrSubRunAllocator* alloc) { in Make() argument
356 return GlyphVector{std::move(strike), SkMakeSpan(variants, glyphs.size())}; in Make()
456 sk_sp<SkStrike>&& strike,
522 sk_sp<SkStrike>&& strike, in Make() argument
564 GlyphVector{std::move(strike), {glyphIDs, goodPosCount}}, glyphsExcluded); in Make()
850 sk_sp<SkStrike>&& strike,
[all …]
/third_party/toybox/toys/net/
Dsntp.c128 int strike; in sntp_main() local
133 strike = xrecvwait(fd, toybuf, sizeof(toybuf), &sa, then-now); in sntp_main()
134 if (strike<1) { in sntp_main()
139 if (strike<48) continue; in sntp_main()
148 strike = strcmp(buf, ntop((void *)&sa)); in sntp_main()
152 if (strike && !FLAG(S)) continue; in sntp_main()
158 if (strike) { in sntp_main()
/third_party/flutter/skia/src/core/
DSkGlyphRunPainter.cpp113 SkStrikeInterface* strike, in DeviceSpacePackedGlyphIDs() argument
124 SkPoint rounding = strike->rounding(); in DeviceSpacePackedGlyphIDs()
128 SkIPoint mask = strike->subpixelMask(); in DeviceSpacePackedGlyphIDs()
180 auto strike = strikeSpec.findOrCreateExclusiveStrike(); in drawForBitmapDevice() local
190 auto glyphPosSpan = strike->prepareForDrawingRemoveEmpty( in drawForBitmapDevice()
213 const SkPath* path = strike->preparePath((SkGlyph*) &glyph); in drawForBitmapDevice()
232 auto strike = strikeSpec.findOrCreateExclusiveStrike(); in drawForBitmapDevice() local
235 strike.get(), in drawForBitmapDevice()
244 SkSpan<const SkGlyphPos> glyphPosSpan = strike->prepareForDrawingRemoveEmpty( in drawForBitmapDevice()
329 SkScopedStrike strike = strikeSpec.findOrCreateScopedStrike(fStrikeCache); in processARGBFallback() local
[all …]
/third_party/flutter/skia/third_party/externals/freetype/src/pfr/
Dpfrsbit.c591 PFR_Strike strike; in pfr_slot_load_bitmap() local
602 strike = phys->strikes; in pfr_slot_load_bitmap()
605 if ( strike->x_ppm == (FT_UInt)size->root.metrics.x_ppem && in pfr_slot_load_bitmap()
606 strike->y_ppm == (FT_UInt)size->root.metrics.y_ppem ) in pfr_slot_load_bitmap()
609 strike++; in pfr_slot_load_bitmap()
624 if ( strike->flags & PFR_BITMAP_2BYTE_CHARCODE ) in pfr_slot_load_bitmap()
626 if ( strike->flags & PFR_BITMAP_2BYTE_SIZE ) in pfr_slot_load_bitmap()
628 if ( strike->flags & PFR_BITMAP_3BYTE_OFFSET ) in pfr_slot_load_bitmap()
632 if ( FT_STREAM_SEEK( phys->bct_offset + strike->bct_offset ) || in pfr_slot_load_bitmap()
633 FT_FRAME_ENTER( char_len * strike->num_bitmaps ) ) in pfr_slot_load_bitmap()
[all …]
Dpfrobjs.c212 PFR_Strike strike; in pfr_face_init() local
220 strike = phy_font->strikes; in pfr_face_init()
221 for ( n = 0; n < count; n++, size++, strike++ ) in pfr_face_init()
223 size->height = (FT_Short)strike->y_ppm; in pfr_face_init()
224 size->width = (FT_Short)strike->x_ppm; in pfr_face_init()
225 size->size = (FT_Pos)( strike->y_ppm << 6 ); in pfr_face_init()
226 size->x_ppem = (FT_Pos)( strike->x_ppm << 6 ); in pfr_face_init()
227 size->y_ppem = (FT_Pos)( strike->y_ppm << 6 ); in pfr_face_init()
/third_party/skia/third_party/externals/freetype/src/pfr/
Dpfrsbit.c591 PFR_Strike strike; in pfr_slot_load_bitmap() local
602 strike = phys->strikes; in pfr_slot_load_bitmap()
605 if ( strike->x_ppm == (FT_UInt)size->root.metrics.x_ppem && in pfr_slot_load_bitmap()
606 strike->y_ppm == (FT_UInt)size->root.metrics.y_ppem ) in pfr_slot_load_bitmap()
609 strike++; in pfr_slot_load_bitmap()
624 if ( strike->flags & PFR_BITMAP_2BYTE_CHARCODE ) in pfr_slot_load_bitmap()
626 if ( strike->flags & PFR_BITMAP_2BYTE_SIZE ) in pfr_slot_load_bitmap()
628 if ( strike->flags & PFR_BITMAP_3BYTE_OFFSET ) in pfr_slot_load_bitmap()
632 if ( FT_STREAM_SEEK( phys->bct_offset + strike->bct_offset ) || in pfr_slot_load_bitmap()
633 FT_FRAME_ENTER( char_len * strike->num_bitmaps ) ) in pfr_slot_load_bitmap()
[all …]
Dpfrobjs.c216 PFR_Strike strike; in pfr_face_init() local
224 strike = phy_font->strikes; in pfr_face_init()
225 for ( n = 0; n < count; n++, size++, strike++ ) in pfr_face_init()
227 size->height = (FT_Short)strike->y_ppm; in pfr_face_init()
228 size->width = (FT_Short)strike->x_ppm; in pfr_face_init()
229 size->size = (FT_Pos)( strike->y_ppm << 6 ); in pfr_face_init()
230 size->x_ppem = (FT_Pos)( strike->x_ppm << 6 ); in pfr_face_init()
231 size->y_ppem = (FT_Pos)( strike->y_ppm << 6 ); in pfr_face_init()
Dpfrload.c461 PFR_Strike strike; in pfr_extra_item_load_bitmap_info() local
503 strike = phy_font->strikes + phy_font->num_strikes; in pfr_extra_item_load_bitmap_info()
507 for ( n = 0; n < count; n++, strike++ ) in pfr_extra_item_load_bitmap_info()
509 strike->x_ppm = ( flags0 & PFR_STRIKE_2BYTE_XPPM ) in pfr_extra_item_load_bitmap_info()
513 strike->y_ppm = ( flags0 & PFR_STRIKE_2BYTE_YPPM ) in pfr_extra_item_load_bitmap_info()
517 strike->flags = PFR_NEXT_BYTE( p ); in pfr_extra_item_load_bitmap_info()
519 strike->bct_size = ( flags0 & PFR_STRIKE_3BYTE_SIZE ) in pfr_extra_item_load_bitmap_info()
523 strike->bct_offset = ( flags0 & PFR_STRIKE_3BYTE_OFFSET ) in pfr_extra_item_load_bitmap_info()
527 strike->num_bitmaps = ( flags0 & PFR_STRIKE_2BYTE_COUNT ) in pfr_extra_item_load_bitmap_info()
/third_party/freetype/src/pfr/
Dpfrsbit.c591 PFR_Strike strike; in pfr_slot_load_bitmap() local
602 strike = phys->strikes; in pfr_slot_load_bitmap()
605 if ( strike->x_ppm == (FT_UInt)size->root.metrics.x_ppem && in pfr_slot_load_bitmap()
606 strike->y_ppm == (FT_UInt)size->root.metrics.y_ppem ) in pfr_slot_load_bitmap()
609 strike++; in pfr_slot_load_bitmap()
624 if ( strike->flags & PFR_BITMAP_2BYTE_CHARCODE ) in pfr_slot_load_bitmap()
626 if ( strike->flags & PFR_BITMAP_2BYTE_SIZE ) in pfr_slot_load_bitmap()
628 if ( strike->flags & PFR_BITMAP_3BYTE_OFFSET ) in pfr_slot_load_bitmap()
632 if ( FT_STREAM_SEEK( phys->bct_offset + strike->bct_offset ) || in pfr_slot_load_bitmap()
633 FT_FRAME_ENTER( char_len * strike->num_bitmaps ) ) in pfr_slot_load_bitmap()
[all …]
Dpfrobjs.c212 PFR_Strike strike; in pfr_face_init() local
220 strike = phy_font->strikes; in pfr_face_init()
221 for ( n = 0; n < count; n++, size++, strike++ ) in pfr_face_init()
223 size->height = (FT_Short)strike->y_ppm; in pfr_face_init()
224 size->width = (FT_Short)strike->x_ppm; in pfr_face_init()
225 size->size = (FT_Pos)( strike->y_ppm << 6 ); in pfr_face_init()
226 size->x_ppem = (FT_Pos)( strike->x_ppm << 6 ); in pfr_face_init()
227 size->y_ppem = (FT_Pos)( strike->y_ppm << 6 ); in pfr_face_init()
/third_party/flutter/skia/third_party/externals/harfbuzz/src/
Dhb-ot-color-cbdt-table.hh403 const BitmapSizeTable &strike = this->cblc->choose_strike (font); in get_extents() local
404 const IndexSubtableRecord *subtable_record = strike.find_table (glyph, cblc, &base); in get_extents()
405 if (!subtable_record || !strike.ppemX || !strike.ppemY) in get_extents()
445 float x_scale = upem / (float) strike.ppemX; in get_extents()
446 float y_scale = upem / (float) strike.ppemY; in get_extents()
459 const BitmapSizeTable &strike = this->cblc->choose_strike (font); in reference_png() local
460 const IndexSubtableRecord *subtable_record = strike.find_table (glyph, cblc, &base); in reference_png()
461 if (!subtable_record || !strike.ppemX || !strike.ppemY) in reference_png()
/third_party/ffmpeg/tests/ref/fate/
Dsub-microdvd-remux3 {1300}{1400}{Y:ib}{y:us}italic bold underline strike|italic bold no-underline no-strike
/third_party/skia/tests/
DSkStrikeCacheTest.cpp33 sk_sp<SkStrike> strike = strikeSpec.findOrCreateStrike(&cache); in DEF_TEST() local
47 sk_sp<SkStrike> strike = strikeSpec.findOrCreateStrike(&cache); in DEF_TEST() local

12345