Home
last modified time | relevance | path

Searched refs:fKey (Results 1 – 25 of 73) sorted by relevance

123

/external/skia/tests/
DHashCacheTest.cpp15 int fKey; member
37 HashKey(int key) : fKey(key) {} in HashKey()
39 uint32_t getHash() const { return fKey; } in getHash()
42 return entry.fKey < key.fKey; in LessThan()
45 return entry.fKey == key.fKey; in Equals()
50 return a.fKey < b.fKey; in LessThan()
53 return a.fKey == b.fKey; in Equals()
58 int fKey; member in HashKey
/external/chromium_org/third_party/skia/include/gpu/
DGrResourceKey.h37 GrResourceKey(const GrResourceKey& src) { fKey = src.fKey; } in GrResourceKey()
39 GrResourceKey() { fKey.reset(); } in GrResourceKey()
45 uint32_t getHash() const { return fKey.getHash(); } in getHash()
49 *reinterpret_cast<const GrCacheID::Domain*>(fKey.getData() + in isScratch()
54 return *reinterpret_cast<const ResourceType*>(fKey.getData() + in getResourceType()
59 return *reinterpret_cast<const ResourceFlags*>(fKey.getData() + in getResourceFlags()
63 bool operator==(const GrResourceKey& other) const { return fKey == other.fKey; }
108 fKey.setKeyData(keyData.fKey32); in init()
110 GrBinHashKey<kKeySize> fKey; variable
DGrBackendProcessorFactory.h58 GrProcessorKey(const uint32_t* key, int count) : fKey(key), fCount(count) { in GrProcessorKey()
65 return fKey[index]; in get32()
72 const uint32_t* fKey; // unowned ptr into the larger key.
/external/skia/src/gpu/
DGrResourceCache.h48 fKey = src.fKey; in GrResourceKey()
52 fKey.reset(); in GrResourceKey()
60 return fKey.getHash(); in getHash()
65 *reinterpret_cast<const GrCacheID::Domain*>(fKey.getData() + in isScratch()
70 return *reinterpret_cast<const ResourceType*>(fKey.getData() + in getResourceType()
75 return *reinterpret_cast<const ResourceFlags*>(fKey.getData() + in getResourceFlags()
79 bool operator==(const GrResourceKey& other) const { return fKey == other.fKey; }
107 fKey.setKeyData(keyData.fKey32); in init()
109 GrBinHashKey<kKeySize> fKey; variable
122 const GrResourceKey& key() const { return fKey; } in key()
[all …]
DSkGrFontScaler.cpp73 fKey = NULL; in SkGrFontScaler()
77 SkSafeUnref(fKey); in ~SkGrFontScaler()
100 if (NULL == fKey) { in getKey()
101 fKey = SkNEW_ARGS(SkGrDescKey, (fStrike->getDescriptor())); in getKey()
103 return fKey; in getKey()
/external/chromium_org/third_party/skia/src/gpu/gl/
DGrGLProgramDesc.cpp222 desc->fKey.reset(); in Build()
223 desc->fKey.push_back_n(kEffectKeyOffsetsAndLengthOffset + 2 * sizeof(uint16_t) * numStages); in Build()
234 reinterpret_cast<uint16_t*>(desc->fKey.begin() + kEffectKeyOffsetsAndLengthOffset + in Build()
237 GrProcessorKeyBuilder b(&desc->fKey); in Build()
239 uint32_t processorOffset = desc->fKey.count(); in Build()
244 desc->fKey.reset(); in Build()
257 reinterpret_cast<uint16_t*>(desc->fKey.begin() + kEffectKeyOffsetsAndLengthOffset + in Build()
260 GrProcessorKeyBuilder b(&desc->fKey); in Build()
262 uint32_t processorOffset = desc->fKey.count(); in Build()
266 desc->fKey.reset(); in Build()
[all …]
DGrGLProgramDesc.h36 return reinterpret_cast<const uint32_t*>(fKey.begin()); in asKey()
170 return reinterpret_cast<T*>(reinterpret_cast<intptr_t>(fKey.begin()) + OFFSET); in atOffset()
174 return reinterpret_cast<const T*>(reinterpret_cast<intptr_t>(fKey.begin()) + OFFSET); in atOffset()
221 fDesc->fKey.begin() + kEffectKeyOffsetsAndLengthOffset); in get()
228 return GrProcessorKey(reinterpret_cast<const uint32_t*>(fDesc->fKey.begin() + offset), in get()
243 SkSTArray<kPreAllocSize, uint8_t, true> fKey; variable
/external/skia/src/gpu/effects/
DGrTextureStripAtlas.h83 AtlasRow() : fKey(kEmptyAtlasRowKey), fLocks(0), fNext(NULL), fPrev(NULL) { } in AtlasRow()
85 uint32_t fKey; member
124 return lhs.fKey < rhs.fKey; in KeyLess()
148 AtlasHashKey fKey; variable
186 return entry.fKey == key; in Equals()
191 return entry.fKey < key; in LessThan()
DGrTextureStripAtlas.cpp43 GetCache()->remove(entry->fKey, entry); in CleanUp()
62 entry->fKey = key; in GetAtlas()
133 uint32_t oldKey = row->fKey; in lockRow()
149 row->fKey = key; in lockRow()
227 fRows[i].fKey = kEmptyAtlasRowKey; in initLRU()
275 target.fKey = key; in searchByKey()
287 uint32_t prev = 1 > fKeyTable.count() ? 0 : fKeyTable[0]->fKey; in validate()
289 SkASSERT(prev < fKeyTable[i]->fKey); in validate()
290 SkASSERT(fKeyTable[i]->fKey != kEmptyAtlasRowKey); in validate()
291 prev = fKeyTable[i]->fKey; in validate()
[all …]
/external/chromium_org/third_party/skia/src/gpu/effects/
DGrTextureStripAtlas.cpp43 GetCache()->remove(entry->fKey); in CleanUp()
62 entry->fKey = key; in GetAtlas()
133 uint32_t oldKey = row->fKey; in lockRow()
149 row->fKey = key; in lockRow()
227 fRows[i].fKey = kEmptyAtlasRowKey; in initLRU()
275 target.fKey = key; in searchByKey()
287 uint32_t prev = 1 > fKeyTable.count() ? 0 : fKeyTable[0]->fKey; in validate()
289 SkASSERT(prev < fKeyTable[i]->fKey); in validate()
290 SkASSERT(fKeyTable[i]->fKey != kEmptyAtlasRowKey); in validate()
291 prev = fKeyTable[i]->fKey; in validate()
[all …]
DGrTextureStripAtlas.h83 AtlasRow() : fKey(kEmptyAtlasRowKey), fLocks(0), fNext(NULL), fPrev(NULL) { } in AtlasRow()
85 uint32_t fKey; member
124 return lhs.fKey < rhs.fKey; in KeyLess()
142 static const Key& GetKey(const AtlasEntry& entry) { return entry.fKey; } in GetKey()
148 Key fKey; variable
/external/chromium_org/third_party/skia/src/core/
DSkBitmapCache.cpp53 : fKey(genID, scaleX, scaleY, bounds) in BitmapRec()
57 BitmapKey fKey; member
60 virtual const Key& getKey() const SK_OVERRIDE { return fKey; } in getKey()
61 virtual size_t bytesUsed() const SK_OVERRIDE { return sizeof(fKey) + fBitmap.getSize(); } in bytesUsed()
127 : fKey(src.getGenerationID(), 0, 0, get_bounds_from_bitmap(src)) in MipMapRec()
135 BitmapKey fKey; member
138 virtual const Key& getKey() const SK_OVERRIDE { return fKey; } in getKey()
139 virtual size_t bytesUsed() const SK_OVERRIDE { return sizeof(fKey) + fMipMap->getSize(); } in bytesUsed()
DSkAnnotation.cpp15 SkAnnotation::SkAnnotation(const char key[], SkData* value) : fKey(key) { in SkAnnotation()
29 return fKey.equals(key) ? fData : NULL; in find()
33 buffer.readString(&fKey); in SkAnnotation()
38 buffer.writeString(fKey.c_str()); in writeToBuffer()
/external/chromium_org/third_party/skia/tests/
DGLProgramsTest.cpp51 fKey.reset(); in setRandom()
56 fKey.push_back_n(kEffectKeyOffsetsAndLengthOffset + 2 * sizeof(uint16_t) * (numStages + in setRandom()
65 uint16_t* offsetAndSize = reinterpret_cast<uint16_t*>(fKey.begin() + in setRandom()
68 uint32_t effectKeyOffset = fKey.count(); in setRandom()
70 fKey.reset(); in setRandom()
73 GrProcessorKeyBuilder b(&fKey); in setRandom()
76 fKey.reset(); in setRandom()
88 uint16_t* offsetAndSize = reinterpret_cast<uint16_t*>(fKey.begin() + in setRandom()
91 uint32_t effectKeyOffset = fKey.count(); in setRandom()
93 fKey.reset(); in setRandom()
[all …]
DImageCacheTest.cpp23 TestingRec(const TestingKey& key, uint32_t value) : fKey(key), fValue(value) {} in TestingRec()
25 TestingKey fKey; member
28 virtual const Key& getKey() const SK_OVERRIDE { return fKey; } in getKey()
29 virtual size_t bytesUsed() const SK_OVERRIDE { return sizeof(fKey) + sizeof(fValue); } in bytesUsed()
/external/chromium_org/third_party/skia/src/gpu/
DGrLayerCache.h94 static const Key& GetKey(const GrCachedLayer& layer) { return layer.fKey; } in GetKey()
103 : fKey(pictureID, start, stop, offset, ctm) in GrCachedLayer()
117 uint32_t pictureID() const { return fKey.pictureID(); } in pictureID()
118 int start() const { return fKey.start(); } in start()
119 int stop() const { return fKey.stop(); } in stop()
120 const SkIPoint& offset() const { return fKey.offset(); } in offset()
121 const SkMatrix& ctm() const { return fKey.ctm(); } in ctm()
146 const Key fKey;
DGrFontScaler.cpp55 fKey = NULL; in GrFontScaler()
59 SkSafeUnref(fKey); in ~GrFontScaler()
82 if (NULL == fKey) { in getKey()
83 fKey = SkNEW_ARGS(GrFontDescKey, (fStrike->getDescriptor())); in getKey()
85 return fKey; in getKey()
/external/chromium_org/third_party/skia/bench/
DImageCacheBench.cpp23 TestKey fKey; member
26 TestRec(const TestKey& key, intptr_t value) : fKey(key), fValue(value) {} in TestRec()
28 virtual const Key& getKey() const SK_OVERRIDE { return fKey; } in getKey()
29 virtual size_t bytesUsed() const SK_OVERRIDE { return sizeof(fKey) + sizeof(fValue); } in bytesUsed()
/external/skia/src/core/
DSkAnnotation.cpp15 SkAnnotation::SkAnnotation(const char key[], SkData* value) : fKey(key) { in SkAnnotation()
29 return fKey.equals(key) ? fData : NULL; in find()
33 buffer.readString(&fKey); in SkAnnotation()
38 buffer.writeString(fKey.c_str()); in writeToBuffer()
/external/chromium_org/third_party/skia/src/ports/
DSkRemotableFontMgr_win_dw.cpp49 void* fKey; member
56 : fLoader(that.fLoader), fKey(that.fKey), fKeySize(that.fKeySize) in DataId()
59 that.fKey = NULL; in DataId()
67 sk_free(fKey); in ~DataId()
89 0 == memcmp(refKey, current.fKey, refKeySize)) in FindOrAdd()
96 added.fKey = sk_malloc_throw(refKeySize); in FindOrAdd()
97 memcpy(added.fKey, refKey, refKeySize); in FindOrAdd()
497 HRNM(loader->CreateStreamFromKey(id.fKey, id.fKeySize, &fontFileStream), in matchNameStyleCharacter()
/external/skia/src/ports/
DSkRemotableFontMgr_win_dw.cpp49 void* fKey; member
56 : fLoader(that.fLoader), fKey(that.fKey), fKeySize(that.fKeySize) in DataId()
59 that.fKey = NULL; in DataId()
67 sk_free(fKey); in ~DataId()
89 0 == memcmp(refKey, current.fKey, refKeySize)) in FindOrAdd()
96 added.fKey = sk_malloc_throw(refKeySize); in FindOrAdd()
97 memcpy(added.fKey, refKey, refKeySize); in FindOrAdd()
486 HRNM(loader->CreateStreamFromKey(id.fKey, id.fKeySize, &fontFileStream), in getData()
/external/skia/src/gpu/gl/
DGrGLProgramDesc.h39 return reinterpret_cast<const uint32_t*>(fKey.get()); in asKey()
188 return reinterpret_cast<T*>(reinterpret_cast<intptr_t>(fKey.get()) + OFFSET); in atOffset()
192 return reinterpret_cast<const T*>(reinterpret_cast<intptr_t>(fKey.get()) + OFFSET); in atOffset()
214 SkAutoSMalloc<kPreAllocSize> fKey; variable
DGrGLProgramDesc.cpp102 desc->fKey.reset(newKeyLength, SkAutoMalloc::kAlloc_OnShrink, &allocChanged); in Build()
272 *desc->checksum() = SkChecksum::Compute(reinterpret_cast<uint32_t*>(desc->fKey.get()), in Build()
281 fKey.reset(keyLength); in operator =()
282 memcpy(fKey.get(), other.fKey.get(), keyLength); in operator =()
/external/chromium_org/third_party/skia/include/views/
DSkOSMenu.h65 void setKeyEquivalent(SkUnichar key) { fKey = key; } in setKeyEquivalent()
66 SkUnichar getKeyEquivalent() const { return fKey; } in getKeyEquivalent()
89 SkUnichar fKey; variable
/external/skia/include/views/
DSkOSMenu.h65 void setKeyEquivalent(SkUnichar key) { fKey = key; } in setKeyEquivalent()
66 SkUnichar getKeyEquivalent() const { return fKey; } in getKeyEquivalent()
89 SkUnichar fKey; variable

123