/external/skia/src/gpu/text/ |
D | GrStrikeCache.h | 77 static const SkDescriptor& GetKey(const GrTextStrike& strike) { in GetKey() argument 78 return *strike.fFontScalerKey.getDesc(); in GetKey() 109 void setStrikeToPreserve(GrTextStrike* strike) { fPreserveStrike = strike; } in setStrikeToPreserve() argument 116 sk_sp<GrTextStrike> strike = sk_ref_sp(fCache.find(desc)); in getStrike() local 117 if (!strike) { in getStrike() 118 strike = this->generateStrike(desc); in getStrike() 120 return strike; in getStrike() 132 sk_sp<GrTextStrike> strike = sk_ref_sp(new GrTextStrike(desc)); in generateStrike() local 133 fCache.add(strike.get()); in generateStrike() 134 return strike; in generateStrike()
|
D | GrStrikeCache.cpp | 46 GrTextStrike* strike = &*iter; in HandleEviction() local 47 strike->removeID(id); in HandleEviction() 51 if (strike != glyphCache->fPreserveStrike && 0 == strike->fAtlasedGlyphs) { in HandleEviction() 52 glyphCache->fCache.remove(GrTextStrike::GetKey(*strike)); in HandleEviction() 53 strike->fIsAbandoned = true; in HandleEviction() 54 strike->unref(); in HandleEviction()
|
D | GrTextBlob.h | 292 void setStrike(sk_sp<GrTextStrike> strike) { fStrike = std::move(strike); } in setStrike() argument 293 GrTextStrike* strike() const { return fStrike.get(); } in strike() function 432 const sk_sp<GrTextStrike>& strike, 438 void appendDeviceSpaceGlyph(const sk_sp<GrTextStrike>& strike, 443 void appendSourceSpaceGlyph(const sk_sp<GrTextStrike>& strike, 527 SkStrikeInterface* strike) override; 530 SkStrikeInterface* strike, SkScalar cacheToSourceScale) override; 535 SkStrikeInterface* strike, 543 SkStrikeInterface* strike, 548 SkStrikeInterface* strike) override;
|
D | GrTextBlobVertexRegenerator.cpp | 148 if (fSubRun->strike()->isAbandoned()) { in VertexRegenerator() 164 sk_sp<GrTextStrike> strike; in doRegen() local 179 strike = fGlyphCache->getStrike((*fLazyCache)->getDescriptor()); in doRegen() 181 strike = fSubRun->refStrike(); in doRegen() 200 fBlob->fGlyphs[glyphOffset] = strike->getGlyph(id, fLazyCache->get()); in doRegen() 208 code = strike->addGlyphToAtlas(fResourceProvider, fUploadTarget, fGlyphCache, in doRegen() 246 fSubRun->setStrike(std::move(strike)); in doRegen()
|
D | GrTextBlob.cpp | 436 if (lSubRun.strike()) { in AssertEqual() 437 SkASSERT_RELEASE(rSubRun.strike()); in AssertEqual() 438 SkASSERT_RELEASE(GrTextStrike::GetKey(*lSubRun.strike()) == in AssertEqual() 439 GrTextStrike::GetKey(*rSubRun.strike())); in AssertEqual() 442 SkASSERT_RELEASE(!rSubRun.strike()); in AssertEqual()
|
/external/skqp/src/gpu/text/ |
D | GrStrikeCache.h | 77 static const SkDescriptor& GetKey(const GrTextStrike& strike) { in GetKey() argument 78 return *strike.fFontScalerKey.getDesc(); in GetKey() 109 void setStrikeToPreserve(GrTextStrike* strike) { fPreserveStrike = strike; } in setStrikeToPreserve() argument 116 sk_sp<GrTextStrike> strike = sk_ref_sp(fCache.find(cache->getDescriptor())); in getStrike() local 117 if (!strike) { in getStrike() 118 strike = this->generateStrike(cache); in getStrike() 120 return strike; in getStrike() 132 sk_sp<GrTextStrike> strike = sk_ref_sp(new GrTextStrike(cache->getDescriptor())); in generateStrike() local 133 fCache.add(strike.get()); in generateStrike() 134 return strike; in generateStrike()
|
D | GrStrikeCache.cpp | 46 GrTextStrike* strike = &*iter; in HandleEviction() local 47 strike->removeID(id); in HandleEviction() 51 if (strike != glyphCache->fPreserveStrike && 0 == strike->fAtlasedGlyphs) { in HandleEviction() 52 glyphCache->fCache.remove(GrTextStrike::GetKey(*strike)); in HandleEviction() 53 strike->fIsAbandoned = true; in HandleEviction() 54 strike->unref(); in HandleEviction()
|
D | GrTextBlobVertexRegenerator.cpp | 148 if (fSubRun->strike()->isAbandoned()) { in VertexRegenerator() 164 sk_sp<GrTextStrike> strike; in doRegen() local 179 strike = fGlyphCache->getStrike(fLazyCache->get()); in doRegen() 181 strike = fSubRun->refStrike(); in doRegen() 200 fBlob->fGlyphs[glyphOffset] = strike->getGlyph(id, fLazyCache->get()); in doRegen() 208 code = strike->addGlyphToAtlas(fResourceProvider, fUploadTarget, fGlyphCache, in doRegen() 246 fSubRun->setStrike(std::move(strike)); in doRegen()
|
D | GrTextBlob.h | 292 void setStrike(sk_sp<GrTextStrike> strike) { fStrike = std::move(strike); } in setStrike() argument 293 GrTextStrike* strike() const { return fStrike.get(); } in strike() function 432 const sk_sp<GrTextStrike>& strike, 438 void appendDeviceSpaceGlyph(const sk_sp<GrTextStrike>& strike, 443 void appendSourceSpaceGlyph(const sk_sp<GrTextStrike>& strike,
|
D | GrTextBlob.cpp | 436 if (lSubRun.strike()) { in AssertEqual() 437 SkASSERT_RELEASE(rSubRun.strike()); in AssertEqual() 438 SkASSERT_RELEASE(GrTextStrike::GetKey(*lSubRun.strike()) == in AssertEqual() 439 GrTextStrike::GetKey(*rSubRun.strike())); in AssertEqual() 442 SkASSERT_RELEASE(!rSubRun.strike()); in AssertEqual()
|
/external/skia/src/core/ |
D | SkGlyphRunPainter.cpp | 306 SkScopedStrike strike = in processARGBFallback() local 310 int drawableGlyphCount = strike->glyphMetrics(fARGBGlyphsIDs.data(), in processARGBFallback() 317 strike.get()); in processARGBFallback() 348 SkScopedStrike strike = in processARGBFallback() local 356 const SkGlyph& glyph = strike->getGlyphMetrics(glyphID, {0, 0}); in processARGBFallback() 362 strike.get(), in processARGBFallback() 409 SkScopedStrike strike = in processGlyphRunList() local 418 const SkGlyph& glyph = strike->getGlyphMetrics(glyphID, {0, 0}); in processGlyphRunList() 426 if (strike->decideCouldDrawFromPath(glyph)) { in processGlyphRunList() 446 strike.get(), in processGlyphRunList() [all …]
|
D | SkGlyphRunPainter.h | 150 SkStrikeInterface* strike) = 0; 153 SkStrikeInterface* strike, SkScalar cacheToSourceScale) = 0; 158 SkStrikeInterface* strike, 166 SkStrikeInterface* strike, 171 SkStrikeInterface* strike) = 0;
|
D | SkRemoteGlyphCache.cpp | 727 auto strike = fStrikeCache->findStrikeExclusive(*client_desc); in readStrikeData() local 728 if (strike == nullptr) { in readStrikeData() 734 strike = fStrikeCache->createStrikeExclusive( in readStrikeData() 738 auto proxyContext = static_cast<SkScalerContextProxy*>(strike->getScalerContext()); in readStrikeData() 739 proxyContext->initCache(strike.get(), fStrikeCache); in readStrikeData() 748 SkGlyph* allocatedGlyph = strike->getRawGlyphByID(glyph->getPackedID()); in readStrikeData() 763 strike->initializeImage(image, imageSize, allocatedGlyph); in readStrikeData() 772 SkGlyph* allocatedGlyph = strike->getRawGlyphByID(glyph->getPackedID()); in readStrikeData() 782 if (!read_path(&deserializer, allocatedGlyph, strike.get())) READ_FAILURE in readStrikeData()
|
/external/freetype/src/sfnt/ |
D | ttbdf.c | 89 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()
|
D | ttsbit.c | 314 FT_Byte* strike; in tt_face_load_strike_metrics() local 319 strike = face->sbit_table + 8 + strike_index * 48; in tt_face_load_strike_metrics() 321 metrics->x_ppem = (FT_UShort)strike[44]; in tt_face_load_strike_metrics() 322 metrics->y_ppem = (FT_UShort)strike[45]; in tt_face_load_strike_metrics() 324 metrics->ascender = (FT_Char)strike[16] * 64; /* hori.ascender */ in tt_face_load_strike_metrics() 325 metrics->descender = (FT_Char)strike[17] * 64; /* hori.descender */ in tt_face_load_strike_metrics() 334 max_before_bl = (FT_Char)strike[24]; in tt_face_load_strike_metrics() 335 min_after_bl = (FT_Char)strike[25]; in tt_face_load_strike_metrics() 387 metrics->max_advance = ( (FT_Char)strike[22] + /* min_origin_SB */ in tt_face_load_strike_metrics() 388 strike[18] + /* max_width */ in tt_face_load_strike_metrics() [all …]
|
/external/toybox/toys/net/ |
D | sntp.c | 128 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()
|
/external/freetype/src/pfr/ |
D | pfrsbit.c | 591 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 …]
|
D | pfrobjs.c | 212 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()
|
D | pfrload.c | 461 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()
|
/external/harfbuzz_ng/src/ |
D | hb-ot-color-cbdt-table.hh | 403 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 double x_scale = upem / (double) strike.ppemX; in get_extents() 446 double y_scale = upem / (double) 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()
|
D | test-ot-color.cc | 92 unsigned int strike = 0; in png_dump() local 111 sprintf (output_path, "out/png-%u-%u-%u.png", glyph_id, strike, face_index); in png_dump() 120 strike++; in png_dump()
|
/external/skqp/src/core/ |
D | SkGlyphRunPainter.cpp | 641 const sk_sp<GrTextStrike>& strike, in switchSubRunIfNeededAndAppendGlyph() argument 649 subRun->setStrike(strike); in switchSubRunIfNeededAndAppendGlyph() 651 subRun->setStrike(strike); in switchSubRunIfNeededAndAppendGlyph() 660 void GrTextBlob::Run::appendDeviceSpaceGlyph(const sk_sp<GrTextStrike>& strike, in appendDeviceSpaceGlyph() argument 662 if (GrGlyph* glyph = strike->getGlyph(skGlyph)) { in appendDeviceSpaceGlyph() 667 this->switchSubRunIfNeededAndAppendGlyph(glyph, strike, glyphRect, false); in appendDeviceSpaceGlyph() 672 void GrTextBlob::Run::appendSourceSpaceGlyph(const sk_sp<GrTextStrike>& strike, in appendSourceSpaceGlyph() argument 676 if (GrGlyph* glyph = strike->getGlyph(skGlyph)) { in appendSourceSpaceGlyph() 681 this->switchSubRunIfNeededAndAppendGlyph(glyph, strike, glyphRect, true); in appendSourceSpaceGlyph() 706 sk_sp<GrTextStrike> strike = fGrStrikeCache->getStrike(fallbackCache.get()); in generateFromGlyphRunList() local [all …]
|
D | SkRemoteGlyphCache.cpp | 657 auto strike = fStrikeCache->findStrikeExclusive(*client_desc); in readStrikeData() local 658 if (strike == nullptr) { in readStrikeData() 664 strike = fStrikeCache->createStrikeExclusive( in readStrikeData() 668 auto proxyContext = static_cast<SkScalerContextProxy*>(strike->getScalerContext()); in readStrikeData() 669 proxyContext->initCache(strike.get(), fStrikeCache); in readStrikeData() 678 SkGlyph* allocatedGlyph = strike->getRawGlyphByID(glyph->getPackedID()); in readStrikeData() 693 strike->initializeImage(image, imageSize, allocatedGlyph); in readStrikeData() 702 SkGlyph* allocatedGlyph = strike->getRawGlyphByID(glyph->getPackedID()); in readStrikeData() 712 if (!read_path(&deserializer, allocatedGlyph, strike.get())) READ_FAILURE in readStrikeData()
|
/external/libvterm/src/ |
D | pen.c | 177 state->pen.strike = 0; setpenattr_bool(state, VTERM_ATTR_STRIKE, 0); in vterm_state_resetpen() 197 setpenattr_bool(state, VTERM_ATTR_STRIKE, state->pen.strike); in vterm_state_savepen() 316 state->pen.strike = 1; in vterm_state_setpen() 357 state->pen.strike = 0; in vterm_state_setpen() 475 if(state->pen.strike) in vterm_state_getpen() 515 val->boolean = state->pen.strike; in vterm_state_get_penattr()
|
D | screen.c | 23 unsigned int strike : 1; member 418 screen->pen.strike = val->boolean; in setpenattr() 754 cell->attrs.strike = intcell->pen.strike; in vterm_screen_get_cell() 791 intcell->pen.strike = cell->attrs.strike; in vterm_screen_set_cell() 893 if((attrs & VTERM_ATTR_STRIKE_MASK) && (a->pen.strike != b->pen.strike)) in attrs_differ()
|