/external/skqp/src/core/ |
D | SkStrike.h | 47 SkGlyph* getRawGlyphByID(SkPackedGlyphID); 52 const SkGlyph& getGlyphIDAdvance(SkGlyphID); 60 const SkGlyph& getGlyphIDMetrics(SkGlyphID); 66 const SkGlyph& getGlyphIDMetrics(uint16_t, SkFixed x, SkFixed y); 80 const void* findImage(const SkGlyph&); 84 void initializeImage(const volatile void* data, size_t size, SkGlyph*); 90 bool yAxis, SkGlyph* , SkScalar* array, int* count); 95 const SkPath* findPath(const SkGlyph&); 100 bool initializePath(SkGlyph*, const volatile void* data, size_t size); 104 bool belongsToCache(const SkGlyph* glyph) const; [all …]
|
D | SkStrike.cpp | 62 SkGlyph* SkStrike::getRawGlyphByID(SkPackedGlyphID id) { in getRawGlyphByID() 66 const SkGlyph& SkStrike::getGlyphIDAdvance(uint16_t glyphID) { in getGlyphIDAdvance() 72 const SkGlyph& SkStrike::getGlyphIDMetrics(uint16_t glyphID) { in getGlyphIDMetrics() 78 const SkGlyph& SkStrike::getGlyphIDMetrics(uint16_t glyphID, SkFixed x, SkFixed y) { in getGlyphIDMetrics() 91 SkGlyph* SkStrike::lookupByPackedGlyphID(SkPackedGlyphID packedGlyphID, MetricsType type) { in lookupByPackedGlyphID() 92 SkGlyph* glyphPtr = fGlyphMap.findOrNull(packedGlyphID); in lookupByPackedGlyphID() 105 SkGlyph* SkStrike::allocateNewGlyph(SkPackedGlyphID packedGlyphID, MetricsType mtype) { in allocateNewGlyph() 106 fMemoryUsed += sizeof(SkGlyph); in allocateNewGlyph() 108 SkGlyph* glyphPtr = fAlloc.make<SkGlyph>(packedGlyphID); in allocateNewGlyph() 124 const void* SkStrike::findImage(const SkGlyph& glyph) { in findImage() [all …]
|
D | SkGlyph.cpp | 14 void SkGlyph::toMask(SkMask* mask) const { in toMask() 23 void SkGlyph::zeroMetrics() { in zeroMetrics() 59 size_t SkGlyph::formatAlignment() const { in formatAlignment() 64 size_t SkGlyph::allocImage(SkArenaAlloc* alloc) { in allocImage() 72 size_t SkGlyph::rowBytes() const { in rowBytes() 76 size_t SkGlyph::rowBytesUsingFormat(SkMask::Format format) const { in rowBytesUsingFormat() 80 size_t SkGlyph::computeImageSize() const { in computeImageSize() 90 size_t SkGlyph::copyImageData(const SkGlyph& from, SkArenaAlloc* alloc) { in copyImageData() 109 SkPath* SkGlyph::addPath(SkScalerContext* scalerContext, SkArenaAlloc* alloc) { in addPath() 112 fPathData = alloc->make<SkGlyph::PathData>(); in addPath()
|
D | SkRemoteGlyphCacheImpl.h | 40 const SkGlyph& findGlyph(SkPackedGlyphID); 46 const SkGlyph& getGlyphMetrics(SkGlyphID glyphID, SkPoint position) override; 48 bool hasImage(const SkGlyph& glyph) override; 50 bool hasPath(const SkGlyph& glyph) override; 92 static SkPackedGlyphID GetKey(const SkGlyph* glyph) { in GetKey() 102 SkTHashTable<SkGlyph*, SkPackedGlyphID, GlyphMapHashTraits> fGlyphMap;
|
D | SkGlyphRunPainter.cpp | 39 static constexpr SkScalar kSubpixelRounding = SkFixedToScalar(SkGlyph::kSubpixelRound); in PixelRounding() 69 bool SkStrikeCommon::GlyphTooBigForAtlas(const SkGlyph& glyph) { in GlyphTooBigForAtlas() 131 static SkMask create_mask(const SkGlyph& glyph, SkPoint position, const void* image) { in create_mask() 187 const SkGlyph& glyph = pathCache->getGlyphMetrics(glyphID, {0, 0}); in drawForBitmapDevice() 223 const SkGlyph& glyph = cache->getGlyphMetrics(glyphID, position); in drawForBitmapDevice() 346 const SkGlyph& glyph = pathCache->getGlyphMetrics(glyphID, {0, 0}); in drawGlyphRunAsPathWithARGBFallback() 380 SkSTArray<4, const SkGlyph*> emptyGlyphs; in drawGlyphRunAsBMPWithPathFallback() 393 [glyphID](const SkGlyph* g) { return g->getGlyphID() == glyphID; })) { in drawGlyphRunAsBMPWithPathFallback() 398 const SkGlyph& glyph = cache->getGlyphMetrics(glyphID, mappedPt); in drawGlyphRunAsBMPWithPathFallback() 421 processEmpties(SkSpan<const SkGlyph*>{emptyGlyphs.data(), emptyGlyphs.size()}); in drawGlyphRunAsBMPWithPathFallback() [all …]
|
D | SkGlyphRunPainter.h | 26 virtual const SkGlyph& getGlyphMetrics(SkGlyphID glyphID, SkPoint position) = 0; 27 virtual bool hasImage(const SkGlyph& glyph) = 0; 28 virtual bool hasPath(const SkGlyph& glyph) = 0; 42 static bool GlyphTooBigForAtlas(const SkGlyph& glyph); 62 const SkGlyph* glyph;
|
D | SkRemoteGlyphCache.cpp | 166 bool read_path(Deserializer* deserializer, SkGlyph* glyph, SkStrike* cache) { in read_path() 442 static void writeGlyph(SkGlyph* glyph, Serializer* serializer) { in writeGlyph() 475 SkGlyph glyph{glyphID}; in writePendingGlyphs() 492 SkGlyph glyph{glyphID}; in writePendingGlyphs() 501 const SkGlyph& SkStrikeServer::SkGlyphCacheState::findGlyph(SkPackedGlyphID glyphID) { in findGlyph() 502 SkGlyph* glyphPtr = fGlyphMap.findOrNull(glyphID); in findGlyph() 504 glyphPtr = fAlloc.make<SkGlyph>(glyphID); in findGlyph() 535 const SkGlyph& SkStrikeServer::SkGlyphCacheState::getGlyphMetrics( in getGlyphMetrics() 544 bool SkStrikeServer::SkGlyphCacheState::hasImage(const SkGlyph& glyph) { in hasImage() 549 bool SkStrikeServer::SkGlyphCacheState::hasPath(const SkGlyph& glyph) { in hasPath() [all …]
|
D | SkScalerContext.h | 289 void getAdvance(SkGlyph*); 290 void getMetrics(SkGlyph*); 291 void getImage(const SkGlyph&); 370 virtual bool generateAdvance(SkGlyph* glyph) = 0; 377 virtual void generateMetrics(SkGlyph* glyph) = 0; 388 virtual void generateImage(const SkGlyph& glyph) = 0;
|
/external/skia/src/ports/ |
D | SkScalerContext_win_dw.h | 19 class SkGlyph; variable 31 bool generateAdvance(SkGlyph* glyph) override; 32 void generateMetrics(SkGlyph* glyph) override; 33 void generateImage(const SkGlyph& glyph) override; 38 static void BilevelToBW(const uint8_t* SK_RESTRICT src, const SkGlyph& glyph); 42 const SkGlyph& glyph, 47 const SkGlyph& glyph, 51 static void RGBToLcd16(const uint8_t* SK_RESTRICT src, const SkGlyph& glyph, 54 const void* drawDWMask(const SkGlyph& glyph, 58 HRESULT getBoundingBox(SkGlyph* glyph, [all …]
|
/external/skqp/src/ports/ |
D | SkScalerContext_win_dw.h | 19 class SkGlyph; variable 32 bool generateAdvance(SkGlyph* glyph) override; 33 void generateMetrics(SkGlyph* glyph) override; 34 void generateImage(const SkGlyph& glyph) override; 39 const void* drawDWMask(const SkGlyph& glyph, 43 HRESULT getBoundingBox(SkGlyph* glyph, 48 bool isColorGlyph(const SkGlyph& glyph); 50 bool isPngGlyph(const SkGlyph& glyph); 56 bool getColorGlyphRun(const SkGlyph& glyph, IDWriteColorGlyphRunEnumerator** colorGlyph); 58 void generateColorMetrics(SkGlyph* glyph); [all …]
|
/external/skia/src/core/ |
D | SkScalerCache.h | 37 std::tuple<SkGlyph*, size_t> mergeGlyphAndImage( 38 SkPackedGlyphID toID, const SkGlyph& from) SK_EXCLUDES(fMu); 42 SkGlyph* glyph, const SkPath* path) SK_EXCLUDES(fMu); 51 SkGlyph* , SkScalar* array, int* count) SK_EXCLUDES(fMu); 57 std::tuple<SkSpan<const SkGlyph*>, size_t> metrics( 58 SkSpan<const SkGlyphID> glyphIDs, const SkGlyph* results[]) SK_EXCLUDES(fMu); 60 std::tuple<SkSpan<const SkGlyph*>, size_t> preparePaths( 61 SkSpan<const SkGlyphID> glyphIDs, const SkGlyph* results[]) SK_EXCLUDES(fMu); 63 std::tuple<SkSpan<const SkGlyph*>, size_t> prepareImages( 64 SkSpan<const SkPackedGlyphID> glyphIDs, const SkGlyph* results[]) SK_EXCLUDES(fMu); [all …]
|
D | SkScalerCache.cpp | 40 std::tuple<SkGlyph*, size_t> SkScalerCache::makeGlyph(SkPackedGlyphID packedGlyphID) { in makeGlyph() 41 SkGlyph* glyph = fAlloc.make<SkGlyph>(packedGlyphID); in makeGlyph() 43 return {glyph, sizeof(SkGlyph)}; in makeGlyph() 46 std::tuple<SkGlyph*, size_t> SkScalerCache::glyph(SkPackedGlyphID packedGlyphID) { in glyph() 47 SkGlyph* glyph = fGlyphMap.findOrNull(packedGlyphID); in glyph() 56 std::tuple<const SkPath*, size_t> SkScalerCache::preparePath(SkGlyph* glyph) { in preparePath() 64 std::tuple<const SkPath*, size_t> SkScalerCache::mergePath(SkGlyph* glyph, const SkPath* path) { in mergePath() 82 std::tuple<SkSpan<const SkGlyph*>, size_t> SkScalerCache::internalPrepare( in internalPrepare() 83 SkSpan<const SkGlyphID> glyphIDs, PathDetail pathDetail, const SkGlyph** results) { in internalPrepare() 84 const SkGlyph** cursor = results; in internalPrepare() [all …]
|
D | SkGlyph.cpp | 17 SkMask SkGlyph::mask() const { in mask() 29 SkMask SkGlyph::mask(SkPoint position) const { in mask() 35 void SkGlyph::zeroMetrics() { in zeroMetrics() 71 size_t SkGlyph::formatAlignment() const { in formatAlignment() 75 size_t SkGlyph::allocImage(SkArenaAlloc* alloc) { in allocImage() 83 bool SkGlyph::setImage(SkArenaAlloc* alloc, SkScalerContext* scalerContext) { in setImage() 96 bool SkGlyph::setImage(SkArenaAlloc* alloc, const void* image) { in setImage() 105 bool SkGlyph::setMetricsAndImage(SkArenaAlloc* alloc, const SkGlyph& from) { in setMetricsAndImage() 122 size_t SkGlyph::rowBytes() const { in rowBytes() 126 size_t SkGlyph::rowBytesUsingFormat(SkMask::Format format) const { in rowBytesUsingFormat() [all …]
|
D | SkStrikeSpec.h | 103 SkSpan<const SkGlyph*> glyphs(SkSpan<const SkGlyphID> glyphIDs); 104 const SkGlyph* glyph(SkGlyphID glyphID); 108 SkAutoSTArray<kTypicalGlyphCount, const SkGlyph*> fGlyphs; 116 SkSpan<const SkGlyph*> glyphs(SkSpan<const SkGlyphID> glyphIDs); 117 const SkGlyph* glyph(SkGlyphID glyphID); 119 const SkGlyph* glyph, SkScalar* array, int* count); 123 SkAutoSTArray<kTypicalGlyphCount, const SkGlyph*> fGlyphs; 131 SkSpan<const SkGlyph*> glyphs(SkSpan<const SkPackedGlyphID> packedIDs); 132 const SkGlyph* glyph(SkPackedGlyphID packedID); 138 SkAutoSTArray<kTypicalGlyphCount, const SkGlyph*> fGlyphs;
|
D | SkStrikeForGPU.h | 21 class SkGlyph; variable 49 static bool CanDrawAsMask(const SkGlyph& glyph); 50 static bool CanDrawAsSDFT(const SkGlyph& glyph); 51 static bool CanDrawAsPath(const SkGlyph& glyph); 52 static bool FitsInAtlas(const SkGlyph& glyph);
|
D | SkStrikeForGPU.cpp | 14 bool SkStrikeForGPU::CanDrawAsMask(const SkGlyph& glyph) { in CanDrawAsMask() 18 bool SkStrikeForGPU::CanDrawAsSDFT(const SkGlyph& glyph) { in CanDrawAsSDFT() 22 bool SkStrikeForGPU::CanDrawAsPath(const SkGlyph& glyph) { in CanDrawAsPath() 27 bool SkStrikeForGPU::FitsInAtlas(const SkGlyph& glyph) { in FitsInAtlas()
|
D | SkStrikeCache.h | 57 SkGlyph* mergeGlyphAndImage(SkPackedGlyphID toID, const SkGlyph& from) { in mergeGlyphAndImage() 63 const SkPath* mergePath(SkGlyph* glyph, const SkPath* path) { in mergePath() 74 SkGlyph* glyph, SkScalar* array, int* count) { in findIntercepts() 82 SkSpan<const SkGlyph*> metrics(SkSpan<const SkGlyphID> glyphIDs, in metrics() 83 const SkGlyph* results[]) { in metrics() 89 SkSpan<const SkGlyph*> preparePaths(SkSpan<const SkGlyphID> glyphIDs, in preparePaths() 90 const SkGlyph* results[]) { in preparePaths() 96 SkSpan<const SkGlyph*> prepareImages(SkSpan<const SkPackedGlyphID> glyphIDs, in prepareImages() 97 const SkGlyph* results[]) { in prepareImages()
|
D | SkStrikeSpec.cpp | 242 SkSpan<const SkGlyph*> SkBulkGlyphMetrics::glyphs(SkSpan<const SkGlyphID> glyphIDs) { in glyphs() 247 const SkGlyph* SkBulkGlyphMetrics::glyph(SkGlyphID glyphID) { in glyph() 257 SkSpan<const SkGlyph*> SkBulkGlyphMetricsAndPaths::glyphs(SkSpan<const SkGlyphID> glyphIDs) { in glyphs() 262 const SkGlyph* SkBulkGlyphMetricsAndPaths::glyph(SkGlyphID glyphID) { in glyph() 268 const SkGlyph* glyph, SkScalar* array, int* count) { in findIntercepts() 271 fStrike->findIntercepts(bounds, scale, xPos, const_cast<SkGlyph*>(glyph), array, count); in findIntercepts() 280 SkSpan<const SkGlyph*> SkBulkGlyphMetricsAndImages::glyphs(SkSpan<const SkPackedGlyphID> glyphIDs) { in glyphs() 285 const SkGlyph* SkBulkGlyphMetricsAndImages::glyph(SkPackedGlyphID packedID) { in glyph()
|
D | SkGlyphBuffer.h | 93 SkGlyphVariant& operator= (SkGlyph* glyph) { 105 SkGlyph* glyph() const { in glyph() 119 operator SkGlyph*() const { return this->glyph(); } 124 SkGlyph* glyph; 167 void push_back(SkGlyph* glyph, size_t from) { in push_back()
|
D | SkTypeface_remote.cpp | 26 bool SkScalerContextProxy::generateAdvance(SkGlyph* glyph) { in generateAdvance() 30 void SkScalerContextProxy::generateMetrics(SkGlyph* glyph) { in generateMetrics() 41 void SkScalerContextProxy::generateImage(const SkGlyph& glyph) { in generateImage()
|
D | SkScalerContext.h | 287 void getAdvance(SkGlyph*); 288 void getMetrics(SkGlyph*); 289 void getImage(const SkGlyph&); 370 virtual bool generateAdvance(SkGlyph* glyph) = 0; 377 virtual void generateMetrics(SkGlyph* glyph) = 0; 388 virtual void generateImage(const SkGlyph& glyph) = 0;
|
/external/skia/tools/fonts/ |
D | RandomScalerContext.cpp | 27 bool generateAdvance(SkGlyph*) override; 28 void generateMetrics(SkGlyph*) override; 29 void generateImage(const SkGlyph&) override; 53 bool RandomScalerContext::generateAdvance(SkGlyph* glyph) { return fProxy->generateAdvance(glyph); } in generateAdvance() 55 void RandomScalerContext::generateMetrics(SkGlyph* glyph) { in generateMetrics() 89 void RandomScalerContext::generateImage(const SkGlyph& glyph) { in generateImage()
|
/external/skqp/src/gpu/text/ |
D | GrStrikeCache.h | 33 GrGlyph* getGlyph(const SkGlyph& skGlyph) { in getGlyph() 52 const SkGlyph& skGlyph = GrToSkGlyph(cache, packed); in getGlyph() 91 static const SkGlyph& GrToSkGlyph(SkStrike* cache, SkPackedGlyphID id) { in GrToSkGlyph() 95 GrGlyph* generateGlyph(const SkGlyph&);
|
/external/skqp/tools/fonts/ |
D | SkRandomScalerContext.cpp | 27 bool generateAdvance(SkGlyph*) override; 28 void generateMetrics(SkGlyph*) override; 29 void generateImage(const SkGlyph&) override; 60 bool SkRandomScalerContext::generateAdvance(SkGlyph* glyph) { in generateAdvance() 64 void SkRandomScalerContext::generateMetrics(SkGlyph* glyph) { in generateMetrics() 99 void SkRandomScalerContext::generateImage(const SkGlyph& glyph) { in generateImage()
|
/external/skqp/src/gpu/ |
D | GrGlyph.h | 25 static GrMaskFormat FormatFromSkGlyph(const SkGlyph& glyph) { in FormatFromSkGlyph() 45 static GrIRect16 BoundsFromSkGlyph(const SkGlyph& glyph) { in BoundsFromSkGlyph() 52 static MaskStyle MaskStyleFromSkGlyph(const SkGlyph& skGlyph) { in MaskStyleFromSkGlyph() 58 GrGlyph(const SkGlyph& skGlyph) in GrGlyph()
|