/external/skia/src/core/ |
D | SkDescriptor.cpp | 16 std::unique_ptr<SkDescriptor> SkDescriptor::Alloc(size_t length) { in Alloc() 19 return std::unique_ptr<SkDescriptor>(new (allocation) SkDescriptor{}); in Alloc() 22 void SkDescriptor::operator delete(void* p) { ::operator delete(p); } in operator delete() 23 void* SkDescriptor::operator new(size_t) { in operator new() 27 void* SkDescriptor::addEntry(uint32_t tag, size_t length, const void* data) { in addEntry() 44 void SkDescriptor::computeChecksum() { in computeChecksum() 45 fChecksum = SkDescriptor::ComputeChecksum(this); in computeChecksum() 48 const void* SkDescriptor::findEntry(uint32_t tag, uint32_t* length) const { in findEntry() 64 std::unique_ptr<SkDescriptor> SkDescriptor::copy() const { in copy() 65 std::unique_ptr<SkDescriptor> desc = SkDescriptor::Alloc(fLength); in copy() [all …]
|
D | SkDescriptor.h | 18 class SkDescriptor : SkNoncopyable { 22 return sizeof(SkDescriptor) + entryCount * sizeof(Entry); in ComputeOverhead() 25 static std::unique_ptr<SkDescriptor> Alloc(size_t length); 42 SkASSERT(SkDescriptor::ComputeChecksum(this) == fChecksum); in assertChecksum() 48 std::unique_ptr<SkDescriptor> copy() const; 52 bool operator==(const SkDescriptor& other) const; 53 bool operator!=(const SkDescriptor& other) const { return !(*this == other); } 69 SkDescriptor() = default; 73 static uint32_t ComputeChecksum(const SkDescriptor* desc); 76 uint32_t fLength{sizeof(SkDescriptor)}; // must be second [all …]
|
D | SkStrikeCache.h | 44 const SkDescriptor& desc, in Strike() 107 const SkDescriptor& getDescriptor() const override { in getDescriptor() 146 sk_sp<Strike> findStrike(const SkDescriptor& desc) SK_EXCLUDES(fLock); 149 const SkDescriptor& desc, 155 const SkDescriptor& desc, 160 const SkDescriptor& desc, 182 sk_sp<Strike> internalFindStrikeOrNull(const SkDescriptor& desc) SK_REQUIRES(fLock); 184 const SkDescriptor& desc, 207 static const SkDescriptor& GetKey(const sk_sp<Strike>& strike) { in GetKey() 210 static uint32_t Hash(const SkDescriptor& descriptor) { in Hash() [all …]
|
D | SkScalerContext.h | 28 class SkDescriptor; variable 267 SkScalerContext(sk_sp<SkTypeface>, const SkScalerContextEffects&, const SkDescriptor*); 324 const SkDescriptor* desc); 326 static SkDescriptor* AutoDescriptorGivenRecAndEffects( 331 static std::unique_ptr<SkDescriptor> DescriptorGivenRecAndEffects( 354 static SkDescriptor* CreateDescriptorAndEffectsUsingPaint( 403 const SkDescriptor& desc);
|
D | SkStrikeForGPU.h | 19 class SkDescriptor; variable 32 virtual const SkDescriptor& getDescriptor() const = 0; 67 virtual SkScopedStrikeForGPU findOrCreateScopedStrike(const SkDescriptor& desc,
|
D | SkRemoteGlyphCache.cpp | 39 static SkDescriptor* auto_descriptor_from_desc(const SkDescriptor* source_desc, in auto_descriptor_from_desc() 66 static const SkDescriptor* create_descriptor( in create_descriptor() 108 void writeDescriptor(const SkDescriptor& desc) { in writeDescriptor() 110 auto result = allocate(desc.getLength(), alignof(SkDescriptor)); in writeDescriptor() 143 if (descLength < sizeof(SkDescriptor)) return false; in readDescriptor() 146 auto* result = this->ensureAtLeast(descLength, alignof(SkDescriptor)); in readDescriptor() 232 size_t operator()(const SkDescriptor* key) const; 233 bool operator()(const SkDescriptor* lhs, const SkDescriptor* rhs) const; 235 size_t MapOps::operator()(const SkDescriptor* key) const { in operator ()() 239 bool MapOps::operator()(const SkDescriptor* lhs, const SkDescriptor* rhs) const { in operator ()() [all …]
|
D | SkStrikeCache.cpp | 34 auto SkStrikeCache::findOrCreateStrike(const SkDescriptor& desc, in findOrCreateStrike() 47 SkScopedStrikeForGPU SkStrikeCache::findOrCreateScopedStrike(const SkDescriptor& desc, in findOrCreateScopedStrike() 122 sk_sp<SkStrike> SkStrikeCache::findStrike(const SkDescriptor& desc) { in findStrike() 129 auto SkStrikeCache::internalFindStrikeOrNull(const SkDescriptor& desc) -> sk_sp<Strike> { in internalFindStrikeOrNull() 156 const SkDescriptor& desc, in createStrike() 165 const SkDescriptor& desc, in internalCreateStrike()
|
/external/skqp/src/core/ |
D | SkDescriptor.cpp | 16 std::unique_ptr<SkDescriptor> SkDescriptor::Alloc(size_t length) { in Alloc() 18 return std::unique_ptr<SkDescriptor>(static_cast<SkDescriptor*>(::operator new (length))); in Alloc() 21 void SkDescriptor::operator delete(void* p) { ::operator delete(p); } in operator delete() 23 void* SkDescriptor::addEntry(uint32_t tag, size_t length, const void* data) { in addEntry() 40 void SkDescriptor::computeChecksum() { in computeChecksum() 41 fChecksum = SkDescriptor::ComputeChecksum(this); in computeChecksum() 44 const void* SkDescriptor::findEntry(uint32_t tag, uint32_t* length) const { in findEntry() 60 std::unique_ptr<SkDescriptor> SkDescriptor::copy() const { in copy() 61 std::unique_ptr<SkDescriptor> desc = SkDescriptor::Alloc(fLength); in copy() 66 bool SkDescriptor::operator==(const SkDescriptor& other) const { in operator ==() [all …]
|
D | SkDescriptor.h | 17 class SkDescriptor : SkNoncopyable { 21 return sizeof(SkDescriptor) + entryCount * sizeof(Entry); in ComputeOverhead() 24 static std::unique_ptr<SkDescriptor> Alloc(size_t length); 29 fLength = sizeof(SkDescriptor); in init() 38 SkASSERT(SkDescriptor::ComputeChecksum(this) == fChecksum); in assertChecksum() 44 std::unique_ptr<SkDescriptor> copy() const; 48 bool operator==(const SkDescriptor& other) const; 49 bool operator!=(const SkDescriptor& other) const { return !(*this == other); } 64 SkDescriptor() = default; 66 static uint32_t ComputeChecksum(const SkDescriptor* desc); [all …]
|
D | SkStrikeCache.h | 73 static ExclusiveStrikePtr FindStrikeExclusive(const SkDescriptor&); 74 ExclusiveStrikePtr findStrikeExclusive(const SkDescriptor&); 75 Node* findAndDetachStrike(const SkDescriptor&); 78 const SkDescriptor& desc, 84 const SkDescriptor& desc, 90 const SkDescriptor& desc, 96 const SkDescriptor& desc, 101 const SkDescriptor& desc, 106 const SkDescriptor& desc, 112 bool desperationSearchForImage(const SkDescriptor& desc, [all …]
|
D | SkRemoteGlyphCache.h | 29 class SkDescriptor; variable 40 size_t operator()(const SkDescriptor* key) const; 41 bool operator()(const SkDescriptor* lhs, const SkDescriptor* rhs) const; 45 using SkDescriptorMap = std::unordered_map<const SkDescriptor*, T, SkDescriptorMapOperators, 49 std::unordered_set<const SkDescriptor*, SkDescriptorMapOperators, SkDescriptorMapOperators>;
|
D | SkStrikeCache.cpp | 23 const SkDescriptor& desc, in Node() 124 SkExclusiveStrikePtr SkStrikeCache::FindStrikeExclusive(const SkDescriptor& desc) { in FindStrikeExclusive() 129 const SkDescriptor& desc, in CreateScalerContext() 146 const SkDescriptor& desc, const SkScalerContextEffects& effects, const SkTypeface& typeface) in FindOrCreateStrikeExclusive() 152 const SkDescriptor& desc, const SkScalerContextEffects& effects, const SkTypeface& typeface) in findOrCreateStrikeExclusive() 157 auto SkStrikeCache::findOrCreateStrike(const SkDescriptor& desc, in findOrCreateStrike() 295 SkExclusiveStrikePtr SkStrikeCache::findStrikeExclusive(const SkDescriptor& desc) { in findStrikeExclusive() 299 auto SkStrikeCache::findAndDetachStrike(const SkDescriptor& desc) -> Node* { in findAndDetachStrike() 313 static bool loose_compare(const SkDescriptor& lhs, const SkDescriptor& rhs) { in loose_compare() 339 bool SkStrikeCache::desperationSearchForImage(const SkDescriptor& desc, SkGlyph* glyph, in desperationSearchForImage() [all …]
|
D | SkRemoteGlyphCacheImpl.h | 20 SkGlyphCacheState(const SkDescriptor& keyDescriptor, 21 const SkDescriptor& deviceDescriptor, 29 const SkDescriptor& getDeviceDescriptor() { in getDeviceDescriptor() 36 const SkDescriptor& getKeyDescriptor() { in getKeyDescriptor()
|
D | SkScalerContext.h | 27 class SkDescriptor; variable 263 SkScalerContext(sk_sp<SkTypeface>, const SkScalerContextEffects&, const SkDescriptor*); 327 static SkDescriptor* MakeDescriptorForPaths(SkFontID fontID, 330 static SkDescriptor* AutoDescriptorGivenRecAndEffects( 335 static std::unique_ptr<SkDescriptor> DescriptorGivenRecAndEffects( 358 static SkDescriptor* CreateDescriptorAndEffectsUsingPaint(
|
D | SkRemoteGlyphCache.cpp | 31 static SkDescriptor* auto_descriptor_from_desc(const SkDescriptor* source_desc, in auto_descriptor_from_desc() 60 static const SkDescriptor* create_descriptor( in create_descriptor() 97 void writeDescriptor(const SkDescriptor& desc) { in writeDescriptor() 99 auto result = allocate(desc.getLength(), alignof(SkDescriptor)); in writeDescriptor() 133 auto* result = this->ensureAtLeast(desc_length, alignof(SkDescriptor)); in readDescriptor() 178 size_t SkDescriptorMapOperators::operator()(const SkDescriptor* key) const { in operator ()() 182 bool SkDescriptorMapOperators::operator()(const SkDescriptor* lhs, const SkDescriptor* rhs) const { in operator ()() 406 const SkDescriptor& keyDescriptor, in SkGlyphCacheState() 407 const SkDescriptor& deviceDescriptor, in SkGlyphCacheState()
|
D | SkScalerContext.cpp | 44 const SkDescriptor* desc) in SkScalerContext() 795 const SkDescriptor* desc) in SkScalerContext_Empty() 825 extern SkScalerContext* SkCreateColorScalerContext(const SkDescriptor* desc); 828 const SkScalerContextEffects& effects, const SkDescriptor* desc, bool allowFailure) const in createScalerContext() 1091 SkDescriptor* SkScalerContext::MakeDescriptorForPaths(SkFontID typefaceID, in MakeDescriptorForPaths() 1101 SkDescriptor* SkScalerContext::CreateDescriptorAndEffectsUsingPaint( in CreateDescriptorAndEffectsUsingPaint() 1124 descSize += SkDescriptor::ComputeOverhead(entryCount); in calculate_size_and_flatten() 1130 SkDescriptor* desc) { in generate_descriptor() 1143 SkDescriptor* SkScalerContext::AutoDescriptorGivenRecAndEffects( in AutoDescriptorGivenRecAndEffects() 1156 std::unique_ptr<SkDescriptor> SkScalerContext::DescriptorGivenRecAndEffects( in DescriptorGivenRecAndEffects() [all …]
|
/external/skia/tests/ |
D | DescriptorTest.cpp | 17 static void SetLength(SkDescriptor* desc, size_t length) { desc->fLength = length; } in SetLength() 18 static void SetCount(SkDescriptor* desc, uint32_t count) { desc->fCount = count; } in SetCount() 22 const size_t size = sizeof(SkDescriptor); in DEF_TEST() 24 auto desc = SkDescriptor::Alloc(size); in DEF_TEST() 31 sizeof(SkDescriptor) + sizeof(SkDescriptor::Entry) + sizeof(SkScalerContextRec); in DEF_TEST() 33 auto desc = SkDescriptor::Alloc(size); in DEF_TEST() 46 sizeof(SkDescriptor) + sizeof(SkDescriptor::Entry) + sizeof(SkScalerContextRec); in DEF_TEST() 48 auto desc = SkDescriptor::Alloc(size + extra_space); in DEF_TEST() 61 const size_t size = sizeof(SkDescriptor) + 3 * sizeof(SkDescriptor::Entry) + in DEF_TEST() 64 auto desc = SkDescriptor::Alloc(size); in DEF_TEST() [all …]
|
/external/skia/src/gpu/text/ |
D | GrStrikeCache.h | 30 GrTextStrike(const SkDescriptor& fontScalerKey); 64 sk_sp<GrTextStrike> findOrCreateStrike(const SkDescriptor& desc) { in findOrCreateStrike() 74 sk_sp<GrTextStrike> generateStrike(const SkDescriptor& desc) { in generateStrike() 81 static const SkDescriptor& GetKey(const sk_sp<GrTextStrike>& strike) { in GetKey() 84 static uint32_t Hash(const SkDescriptor& desc) { return desc.getChecksum(); } in Hash() 87 using StrikeHash = SkTHashTable<sk_sp<GrTextStrike>, SkDescriptor, DescriptorHashTraits>;
|
/external/skqp/src/gpu/text/ |
D | GrStrikeCache.h | 31 GrTextStrike(const SkDescriptor& fontScalerKey); 77 static const SkDescriptor& GetKey(const GrTextStrike& strike) { in GetKey() 81 static uint32_t Hash(const SkDescriptor& desc) { return desc.getChecksum(); } in Hash() 137 using StrikeHash = SkTDynamicHash<GrTextStrike, SkDescriptor>;
|
/external/skia/tools/fonts/ |
D | RandomScalerContext.cpp | 16 class SkDescriptor; 22 const SkDescriptor*, 42 const SkDescriptor* desc, in RandomScalerContext() 145 const SkScalerContextEffects& effects, const SkDescriptor* desc) const in onCreateScalerContext()
|
D | TestTypeface.cpp | 31 class SkDescriptor; 152 const SkDescriptor* desc) in SkTestScalerContext() 196 const SkScalerContextEffects& effects, const SkDescriptor* desc) const in onCreateScalerContext()
|
/external/skqp/tools/fonts/ |
D | SkRandomScalerContext.cpp | 17 class SkDescriptor; 22 const SkDescriptor*, bool fFakeIt); 43 const SkDescriptor* desc, in SkRandomScalerContext() 156 const SkDescriptor* desc) const { in onCreateScalerContext()
|
/external/skqp/src/ports/ |
D | SkScalerContext_win_dw.h | 20 class SkDescriptor; variable 26 const SkDescriptor*);
|
/external/skia/src/ports/ |
D | SkScalerContext_mac_ct.h | 33 class SkDescriptor; variable 44 SkScalerContext_Mac(sk_sp<SkTypeface_Mac>, const SkScalerContextEffects&, const SkDescriptor*);
|
D | SkScalerContext_win_dw.h | 20 class SkDescriptor; variable 26 const SkDescriptor*);
|