/external/skqp/include/private/ |
D | GrResourceKey.h | 30 return fKey[kHash_MetaDataIdx]; in hash() 47 fKey.reset(kMetaDataCnt); in reset() 48 fKey[kHash_MetaDataIdx] = 0; in reset() 49 fKey[kDomainAndSize_MetaDataIdx] = kInvalidDomain; in reset() 53 return this->hash() == that.hash() && 0 == memcmp(&fKey[kHash_MetaDataIdx + 1], 54 &that.fKey[kHash_MetaDataIdx + 1], 65 fKey.reset(SkToInt(bytes / sizeof(uint32_t))); 66 memcpy(fKey.get(), that.fKey.get(), bytes); 75 uint32_t domain() const { return fKey[kDomainAndSize_MetaDataIdx] & 0xffff; } in domain() 83 return &fKey[kMetaDataCnt]; in data() [all …]
|
/external/skia/include/private/ |
D | GrResourceKey.h | 30 return fKey[kHash_MetaDataIdx]; in hash() 47 fKey.reset(kMetaDataCnt); in reset() 48 fKey[kHash_MetaDataIdx] = 0; in reset() 49 fKey[kDomainAndSize_MetaDataIdx] = kInvalidDomain; in reset() 53 return this->hash() == that.hash() && 0 == memcmp(&fKey[kHash_MetaDataIdx + 1], 54 &that.fKey[kHash_MetaDataIdx + 1], 65 fKey.reset(SkToInt(bytes / sizeof(uint32_t))); 66 memcpy(fKey.get(), that.fKey.get(), bytes); 75 uint32_t domain() const { return fKey[kDomainAndSize_MetaDataIdx] & 0xffff; } in domain() 83 return &fKey[kMetaDataCnt]; in data() [all …]
|
/external/skia/tools/gpu/ |
D | MemoryCache.h | 39 Key(const SkData& key) : fKey(SkData::MakeWithCopy(key.data(), key.size())) {} in Key() 43 return that.fKey->size() == fKey->size() && 44 !memcmp(fKey->data(), that.fKey->data(), that.fKey->size()); 46 sk_sp<const SkData> fKey; member 53 return key.fKey ? SkOpts::hash_fn(key.fKey->data(), key.fKey->size(), 0) : 0; in operator()
|
/external/skqp/tools/gpu/ |
D | MemoryCache.h | 39 Key(const SkData& key) : fKey(SkData::MakeWithCopy(key.data(), key.size())) {} in Key() 43 return that.fKey->size() == fKey->size() && 44 !memcmp(fKey->data(), that.fKey->data(), that.fKey->size()); 46 sk_sp<const SkData> fKey; member 53 return key.fKey ? SkOpts::hash_fn(key.fKey->data(), key.fKey->size(), 0) : 0; in operator()
|
/external/skqp/src/gpu/ |
D | GrProgramDesc.h | 51 return reinterpret_cast<const uint32_t*>(fKey.begin()); in asKey() 56 SkASSERT(0 == (fKey.count() % 4)); in keyLength() 57 return fKey.count(); in keyLength() 62 fKey.reset(SkToInt(keyLength)); 63 memcpy(fKey.begin(), other.fKey.begin(), keyLength); 111 return reinterpret_cast<T*>(reinterpret_cast<intptr_t>(fKey.begin()) + OFFSET); in atOffset() 115 return reinterpret_cast<const T*>(reinterpret_cast<intptr_t>(fKey.begin()) + OFFSET); in atOffset() 137 SkSTArray<kPreAllocSize, uint8_t, true>& key() { return fKey; } in key() 138 const SkSTArray<kPreAllocSize, uint8_t, true>& key() const { return fKey; } in key() 141 SkSTArray<kPreAllocSize, uint8_t, true> fKey;
|
D | GrSwizzle.h | 23 , fKey(that.fKey) {} 31 fKey = that.fKey; 37 fKey = key; in setFromKey() 45 constexpr bool operator==(const GrSwizzle& that) const { return fKey == that.fKey; } 49 constexpr uint8_t asKey() const { return fKey; } in asKey() 62 uint32_t key = fKey; in applyTo() 87 uint8_t fKey; variable 111 , fKey((CToI(c[0]) << 0) | (CToI(c[1]) << 2) | (CToI(c[2]) << 4) | (CToI(c[3]) << 6)) {}
|
/external/skia/src/gpu/ |
D | GrProgramDesc.h | 47 return reinterpret_cast<const uint32_t*>(fKey.begin()); in asKey() 52 SkASSERT(0 == (fKey.count() % 4)); in keyLength() 53 return fKey.count(); in keyLength() 58 fKey.reset(SkToInt(keyLength)); 59 memcpy(fKey.begin(), other.fKey.begin(), keyLength); 116 return reinterpret_cast<T*>(reinterpret_cast<intptr_t>(fKey.begin()) + OFFSET); in atOffset() 120 return reinterpret_cast<const T*>(reinterpret_cast<intptr_t>(fKey.begin()) + OFFSET); in atOffset() 142 SkSTArray<kPreAllocSize, uint8_t, true>& key() { return fKey; } in key() 143 const SkSTArray<kPreAllocSize, uint8_t, true>& key() const { return fKey; } in key() 146 SkSTArray<kPreAllocSize, uint8_t, true> fKey;
|
D | GrSwizzle.h | 23 , fKey(that.fKey) {} 31 fKey = that.fKey; 37 fKey = key; in setFromKey() 45 constexpr bool operator==(const GrSwizzle& that) const { return fKey == that.fKey; } 49 constexpr uint16_t asKey() const { return fKey; } in asKey() 78 uint32_t key = fKey; in applyTo() 104 uint16_t fKey; variable 130 … , fKey((CToI(c[0]) << 0) | (CToI(c[1]) << 4) | (CToI(c[2]) << 8) | (CToI(c[3]) << 12)) {}
|
/external/skqp/src/pdf/ |
D | SkKeyedImage.cpp | 24 fKey = SkBitmapKeyFromImage(fImage.get()); in SkKeyedImage() 29 fKey = {bm.getSubset(), bm.getGenerationID()}; in SkKeyedImage() 38 img.fKey = {subset.makeOffset(fKey.fSubset.x(), fKey.fSubset.y()), fKey.fID}; in subset() 47 fKey = {{0, 0, 0, 0}, 0}; in release()
|
/external/skia/src/pdf/ |
D | SkKeyedImage.cpp | 24 fKey = SkBitmapKeyFromImage(fImage.get()); in SkKeyedImage() 29 fKey = {bm.getSubset(), bm.getGenerationID()}; in SkKeyedImage() 38 img.fKey = {subset.makeOffset(fKey.fSubset.x(), fKey.fSubset.y()), fKey.fID}; in subset() 47 fKey = {{0, 0, 0, 0}, 0}; in release()
|
/external/skqp/src/gpu/ops/ |
D | GrSmallPathRenderer.cpp | 59 fKey.reset(that.fKey.count()); in operator =() 60 memcpy(fKey.get(), that.fKey.get(), fKey.count() * sizeof(uint32_t)); in operator =() 71 fKey.reset(1 + shapeKeySize); in set() 72 fKey[0] = dim; in set() 73 shape.writeUnstyledKey(&fKey[1]); in set() 95 fKey.reset(5 + shapeKeySize); in set() 96 fKey[0] = SkFloat2Bits(sx); in set() 97 fKey[1] = SkFloat2Bits(sy); in set() 98 fKey[2] = SkFloat2Bits(kx); in set() 99 fKey[3] = SkFloat2Bits(ky); in set() [all …]
|
/external/skia/src/gpu/ops/ |
D | GrSmallPathRenderer.cpp | 60 fKey.reset(that.fKey.count()); in operator =() 61 memcpy(fKey.get(), that.fKey.get(), fKey.count() * sizeof(uint32_t)); in operator =() 72 fKey.reset(1 + shapeKeySize); in set() 73 fKey[0] = dim; in set() 74 shape.writeUnstyledKey(&fKey[1]); in set() 96 fKey.reset(5 + shapeKeySize); in set() 97 fKey[0] = SkFloat2Bits(sx); in set() 98 fKey[1] = SkFloat2Bits(sy); in set() 99 fKey[2] = SkFloat2Bits(kx); in set() 100 fKey[3] = SkFloat2Bits(ky); in set() [all …]
|
/external/skia/src/gpu/effects/ |
D | GrSkSLFP.cpp | 39 if (var.fModifiers.fLayout.fKey) { in GrSkSLFPFactory() 312 const SkSL::Program* specialized = fFactory->getSpecialization(fKey, fInputs.get(), fInputSize); in onCreateGLSLInstance() 331 if (v->fModifiers.fLayout.fKey) { in onGetGLSLProcessorKey() 332 fKey += inputs[offset + 0]; in onGetGLSLProcessorKey() 333 fKey += inputs[offset + 1]; in onGetGLSLProcessorKey() 334 fKey += inputs[offset + 2]; in onGetGLSLProcessorKey() 335 fKey += inputs[offset + 3]; in onGetGLSLProcessorKey() 341 if (v->fModifiers.fLayout.fKey) { in onGetGLSLProcessorKey() 342 fKey += inputs[offset + 0]; in onGetGLSLProcessorKey() 343 fKey += inputs[offset + 1]; in onGetGLSLProcessorKey() [all …]
|
/external/skia/bench/ |
D | ImageCacheBench.cpp | 22 TestKey fKey; member 25 TestRec(const TestKey& key, intptr_t value) : fKey(key), fValue(value) {} in TestRec() 27 const Key& getKey() const override { return fKey; } in getKey() 28 size_t bytesUsed() const override { return sizeof(fKey) + sizeof(fValue); } in bytesUsed()
|
/external/skqp/bench/ |
D | ImageCacheBench.cpp | 22 TestKey fKey; member 25 TestRec(const TestKey& key, intptr_t value) : fKey(key), fValue(value) {} in TestRec() 27 const Key& getKey() const override { return fKey; } in getKey() 28 size_t bytesUsed() const override { return sizeof(fKey) + sizeof(fValue); } in bytesUsed()
|
/external/skqp/src/core/ |
D | SkLRUCache.h | 23 : fKey(key) in Entry() 26 K fKey; member 63 this->remove(fLRU.tail()->fKey); in insert() 92 return e->fKey; in GetKey() 104 SkASSERT(key == entry->fKey); in remove()
|
D | SkBitmapCache.cpp | 67 : fKey(desc) in Rec() 89 const Key& getKey() const override { return fKey; } in getKey() 91 return sizeof(fKey) + fInfo.computeByteSize(fRowBytes); in bytesUsed() 156 BitmapKey fKey; member in SkBitmapCache::Rec 234 : fKey(desc) in MipMapRec() 244 const Key& getKey() const override { return fKey; } in getKey() 245 size_t bytesUsed() const override { return sizeof(fKey) + fMipMap->size(); } in bytesUsed() 266 MipMapKey fKey; member
|
D | SkMaskCache.cpp | 39 : fKey(key) in RRectBlurRec() 49 RRectBlurKey fKey; member 52 const Key& getKey() const override { return fKey; } in getKey() 130 : fKey(key) in RectsBlurRec() 140 RectsBlurKey fKey; member 143 const Key& getKey() const override { return fKey; } in getKey()
|
/external/skia/src/core/ |
D | SkLRUCache.h | 23 : fKey(key) in Entry() 26 K fKey; member 63 this->remove(fLRU.tail()->fKey); in insert() 92 return e->fKey; in GetKey() 104 SkASSERT(key == entry->fKey); in remove()
|
D | SkBitmapCache.cpp | 67 : fKey(desc) in Rec() 89 const Key& getKey() const override { return fKey; } in getKey() 91 return sizeof(fKey) + fInfo.computeByteSize(fRowBytes); in bytesUsed() 156 BitmapKey fKey; member in SkBitmapCache::Rec 234 : fKey(desc) in MipMapRec() 244 const Key& getKey() const override { return fKey; } in getKey() 245 size_t bytesUsed() const override { return sizeof(fKey) + fMipMap->size(); } in bytesUsed() 266 MipMapKey fKey; member
|
D | SkMaskCache.cpp | 39 : fKey(key) in RRectBlurRec() 49 RRectBlurKey fKey; member 52 const Key& getKey() const override { return fKey; } in getKey() 130 : fKey(key) in RectsBlurRec() 140 RectsBlurKey fKey; member 143 const Key& getKey() const override { return fKey; } in getKey()
|
/external/skia/src/ports/ |
D | SkRemotableFontMgr_win_dw.cpp | 31 void* fKey; member 36 DataId(DataId&& that) : fLoader(that.fLoader), fKey(that.fKey), fKeySize(that.fKeySize) { in DataId() 38 that.fKey = nullptr; in DataId() 46 sk_free(fKey); in ~DataId() 68 0 == memcmp(refKey, current.fKey, refKeySize)) in FindOrAdd() 75 added.fKey = sk_malloc_throw(refKeySize); in FindOrAdd() 76 memcpy(added.fKey, refKey, refKeySize); in FindOrAdd() 430 HRNM(loader->CreateStreamFromKey(id.fKey, id.fKeySize, &fontFileStream), in getData()
|
/external/skqp/src/ports/ |
D | SkRemotableFontMgr_win_dw.cpp | 31 void* fKey; member 36 DataId(DataId&& that) : fLoader(that.fLoader), fKey(that.fKey), fKeySize(that.fKeySize) { in DataId() 38 that.fKey = nullptr; in DataId() 46 sk_free(fKey); in ~DataId() 68 0 == memcmp(refKey, current.fKey, refKeySize)) in FindOrAdd() 75 added.fKey = sk_malloc_throw(refKeySize); in FindOrAdd() 76 memcpy(added.fKey, refKey, refKeySize); in FindOrAdd() 430 HRNM(loader->CreateStreamFromKey(id.fKey, id.fKeySize, &fontFileStream), in getData()
|
/external/skqp/src/gpu/effects/ |
D | GrSkSLFP.cpp | 37 if (var.fModifiers.fLayout.fKey) { in GrSkSLFPFactory() 289 const SkSL::Program* specialized = fFactory->getSpecialization(fKey, fInputs.get(), fInputSize); in onCreateGLSLInstance() 308 if (v->fModifiers.fLayout.fKey) { in onGetGLSLProcessorKey() 309 fKey += inputs[offset + 0]; in onGetGLSLProcessorKey() 310 fKey += inputs[offset + 1]; in onGetGLSLProcessorKey() 311 fKey += inputs[offset + 2]; in onGetGLSLProcessorKey() 312 fKey += inputs[offset + 3]; in onGetGLSLProcessorKey() 318 if (v->fModifiers.fLayout.fKey) { in onGetGLSLProcessorKey() 320 fKey += inputs[offset + i]; in onGetGLSLProcessorKey() 334 if (v->fModifiers.fLayout.fKey) { in onGetGLSLProcessorKey() [all …]
|
/external/skia/src/gpu/vk/ |
D | GrVkSamplerYcbcrConversion.h | 45 return ycbcrConversion.fKey; in GetKey() 61 , fKey(key) {} in GrVkSamplerYcbcrConversion() 66 Key fKey; variable
|