Home
last modified time | relevance | path

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

/external/skia/include/gpu/
DGrResourceKey.h216 class GrUniqueKey : public GrResourceKey {
226 GrUniqueKey() {} in GrUniqueKey() function
228 GrUniqueKey(const GrUniqueKey& that) { *this = that; } in GrUniqueKey() function
235 GrUniqueKey& operator=(const GrUniqueKey& that) {
240 bool operator==(const GrUniqueKey& that) const {
243 bool operator!=(const GrUniqueKey& that) const { return !(*this == that); }
247 Builder(GrUniqueKey* key, Domain domain, int data32Count) in Builder()
251 Builder(GrUniqueKey* key, const GrUniqueKey& innerKey, Domain domain, in Builder()
263 static int Data32CntForInnerKey(const GrUniqueKey& innerKey) { in Data32CntForInnerKey()
281 static GrUniqueKey name; \
[all …]
DGrTextureProvider.h39 void assignUniqueKeyToTexture(const GrUniqueKey& key, GrTexture* texture) { in assignUniqueKeyToTexture()
44 GrTexture* findAndRefTextureByUniqueKey(const GrUniqueKey& key) { in findAndRefTextureByUniqueKey()
59 bool existsTextureWithUniqueKey(const GrUniqueKey& key) const { in existsTextureWithUniqueKey()
134 void assignUniqueKeyToResource(const GrUniqueKey&, GrGpuResource*);
141 GrGpuResource* findAndRefResourceByUniqueKey(const GrUniqueKey&);
148 bool existsResourceWithUniqueKey(const GrUniqueKey& key) const;
DGrGpuResource.h211 const GrUniqueKey& getUniqueKey() const { return fUniqueKey; } in getUniqueKey()
291 void setUniqueKey(const GrUniqueKey&);
314 GrUniqueKey fUniqueKey;
/external/skia/src/gpu/
DSkGr.cpp111 static bool make_stretched_key(const GrUniqueKey& origKey, Stretch stretch, in make_stretched_key()
112 GrUniqueKey* stretchedKey) { in make_stretched_key()
114 static const GrUniqueKey::Domain kDomain = GrUniqueKey::GenerateDomain(); in make_stretched_key()
115 GrUniqueKey::Builder builder(stretchedKey, origKey, kDomain, 1); in make_stretched_key()
124 static void make_unstretched_key(const SkBitmap& bitmap, GrUniqueKey* key) { in make_unstretched_key()
132 static const GrUniqueKey::Domain kDomain = GrUniqueKey::GenerateDomain(); in make_unstretched_key()
133 GrUniqueKey::Builder builder(key, kDomain, 4); in make_unstretched_key()
142 GrUniqueKey* key, in make_bitmap_keys()
143 GrUniqueKey* stretchedKey) { in make_bitmap_keys()
163 explicit BitmapInvalidator(const GrUniqueKey& key) : fMsg(key) {} in BitmapInvalidator()
[all …]
DGrStencilAttachment.cpp13 GrUniqueKey* key) { in ComputeSharedStencilAttachmentKey()
14 static const GrUniqueKey::Domain kDomain = GrUniqueKey::GenerateDomain(); in ComputeSharedStencilAttachmentKey()
15 GrUniqueKey::Builder builder(key, kDomain, 3); in ComputeSharedStencilAttachmentKey()
DGrResourceProvider.h26 template <typename T> T* findAndRefTByUniqueKey(const GrUniqueKey& key) { in findAndRefTByUniqueKey()
47 const GrUniqueKey& key) { in refOrCreateInstancedIndexBuffer()
79 const GrUniqueKey& key);
83 GrUniqueKey fQuadIndexBufferKey;
DGrResourceCache.h141 GrGpuResource* findAndRefUniqueResource(const GrUniqueKey& key) { in findAndRefUniqueResource()
152 bool hasUniqueKey(const GrUniqueKey& key) const { in hasUniqueKey()
196 void changeUniqueKey(GrGpuResource*, const GrUniqueKey&);
232 static const GrUniqueKey& GetKey(const GrGpuResource& r) { return r.getUniqueKey(); } in GetKey()
234 static uint32_t Hash(const GrUniqueKey& key) { return key.hash(); } in Hash()
236 typedef SkTDynamicHash<GrGpuResource, GrUniqueKey, UniqueHashTraits> UniqueHash;
345 void changeUniqueKey(GrGpuResource* resource, const GrUniqueKey& newKey) { in changeUniqueKey()
DGrPath.cpp16 void GrPath::ComputeKey(const SkPath& path, const SkStrokeRec& stroke, GrUniqueKey* key) { in ComputeKey()
17 static const GrUniqueKey::Domain kDomain = GrUniqueKey::GenerateDomain(); in ComputeKey()
18 GrUniqueKey::Builder builder(key, kDomain, 3); in ComputeKey()
DGrTextureProvider.cpp121 void GrTextureProvider::assignUniqueKeyToResource(const GrUniqueKey& key, GrGpuResource* resource) { in assignUniqueKeyToResource()
128 bool GrTextureProvider::existsResourceWithUniqueKey(const GrUniqueKey& key) const { in existsResourceWithUniqueKey()
132 GrGpuResource* GrTextureProvider::findAndRefResourceByUniqueKey(const GrUniqueKey& key) { in findAndRefResourceByUniqueKey()
DGrStencilAndCoverTextContext.cpp224 static const GrUniqueKey::Domain kDomain = GrUniqueKey::GenerateDomain(); in get_gr_glyphs()
225 GrUniqueKey key; in get_gr_glyphs()
226 GrUniqueKey::Builder builder(&key, kDomain, 4); in get_gr_glyphs()
DGrPath.h30 static void ComputeKey(const SkPath& path, const SkStrokeRec& stroke, GrUniqueKey* key);
DGrGpuResourcePriv.h26 void setUniqueKey(const GrUniqueKey& key) { fResource->setUniqueKey(key); } in setUniqueKey()
DGrStencilAttachment.h53 GrUniqueKey* key);
DGrResourceProvider.cpp26 const GrUniqueKey& key) { in createInstancedIndexBuffer()
DGrGpuResourceCacheAccess.h59 void setUniqueKey(const GrUniqueKey& key) { fResource->fUniqueKey = key; } in setUniqueKey()
DGrResourceCache.cpp33 GrUniqueKey::Domain GrUniqueKey::GenerateDomain() { in GenerateDomain()
289 void GrResourceCache::changeUniqueKey(GrGpuResource* resource, const GrUniqueKey& newKey) { in changeUniqueKey()
656 const GrUniqueKey& uniqueKey = resource->getUniqueKey(); in validate()
DGrGpuResource.cpp92 void GrGpuResource::setUniqueKey(const GrUniqueKey& key) { in setUniqueKey()
DGrStencilAndCoverPathRenderer.cpp78 GrUniqueKey key; in get_gr_path()
DGrGpu.cpp137 GrUniqueKey sbKey; in attachStencilAttachmentToRenderTarget()
/external/skia/bench/
DGrResourceCacheBench.cpp32 static void ComputeKey(int i, GrUniqueKey* key) { in ComputeKey()
33 static GrUniqueKey::Domain kDomain = GrUniqueKey::GenerateDomain(); in ComputeKey()
34 GrUniqueKey::Builder builder(key, kDomain, 1); in ComputeKey()
46 GrUniqueKey key; in populate_cache()
129 GrUniqueKey key; in onDraw()
/external/skia/tests/
DResourceCacheTest.cpp337 template <int> static void make_unique_key(GrUniqueKey* key, int data) { in make_unique_key()
338 static GrUniqueKey::Domain d = GrUniqueKey::GenerateDomain(); in make_unique_key()
339 GrUniqueKey::Builder builder(key, d, 1); in make_unique_key()
348 GrUniqueKey uniqueKey; in test_budgeting()
366 GrUniqueKey uniqueKey2; in test_budgeting()
433 GrUniqueKey uniqueKey; in test_unbudgeted()
722 GrUniqueKey key; in test_duplicate_unique_key()
764 GrUniqueKey differentKey; in test_duplicate_unique_key()
803 GrUniqueKey key1, key2, key3; in test_purge_invalidated()
871 GrUniqueKey key1, key2; in test_cache_chained_purge()
[all …]
DGLProgramsTest.cpp121 GrUniqueKey key; in random_render_target()
122 static const GrUniqueKey::Domain kDomain = GrUniqueKey::GenerateDomain(); in random_render_target()
123 GrUniqueKey::Builder builder(&key, kDomain, 2); in random_render_target()
/external/skia/src/gpu/effects/
DGrTextureStripAtlas.cpp201 static const GrUniqueKey::Domain kDomain = GrUniqueKey::GenerateDomain(); in lockTexture()
202 GrUniqueKey key; in lockTexture()
203 GrUniqueKey::Builder builder(&key, kDomain, 1); in lockTexture()
/external/skia/src/effects/
DSkColorCubeFilter.cpp342 static const GrUniqueKey::Domain kDomain = GrUniqueKey::GenerateDomain(); in asFragmentProcessors()
343 GrUniqueKey key; in asFragmentProcessors()
344 GrUniqueKey::Builder builder(&key, kDomain, 2); in asFragmentProcessors()
DSkBlurMaskFilter.cpp763 static const GrUniqueKey::Domain kDomain = GrUniqueKey::GenerateDomain(); in CreateBlurProfileTexture()
764 GrUniqueKey key; in CreateBlurProfileTexture()
765 GrUniqueKey::Builder builder(&key, kDomain, 1); in CreateBlurProfileTexture()
927 static const GrUniqueKey::Domain kDomain = GrUniqueKey::GenerateDomain(); in Create()
928 GrUniqueKey key; in Create()
929 GrUniqueKey::Builder builder(&key, kDomain, 2); in Create()