Home
last modified time | relevance | path

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

123

/external/skia/src/gpu/ganesh/
DGrThreadSafeCache.h86 SkDEBUGCODE(bool has(const skgpu::UniqueKey&) SK_EXCLUDES(fSpinLock);)
88 GrSurfaceProxyView find(const skgpu::UniqueKey&) SK_EXCLUDES(fSpinLock);
90 const skgpu::UniqueKey&) SK_EXCLUDES(fSpinLock);
93 const skgpu::UniqueKey&, const GrSurfaceProxyView&) SK_EXCLUDES(fSpinLock);
95 const skgpu::UniqueKey&, const GrSurfaceProxyView&) SK_EXCLUDES(fSpinLock);
97 GrSurfaceProxyView findOrAdd(const skgpu::UniqueKey&,
100 const skgpu::UniqueKey&, const GrSurfaceProxyView&) SK_EXCLUDES(fSpinLock);
167 const skgpu::UniqueKey&) SK_EXCLUDES(fSpinLock);
172 const skgpu::UniqueKey&,
176 void remove(const skgpu::UniqueKey&) SK_EXCLUDES(fSpinLock);
[all …]
DGrThreadSafeCache.cpp114 const skgpu::UniqueKey& key) { in internalFind()
125 bool GrThreadSafeCache::has(const skgpu::UniqueKey& key) { in has()
133 GrSurfaceProxyView GrThreadSafeCache::find(const skgpu::UniqueKey& key) { in find()
142 const skgpu::UniqueKey& key) { in findWithData()
148 GrThreadSafeCache::Entry* GrThreadSafeCache::getEntry(const skgpu::UniqueKey& key, in getEntry()
172 GrThreadSafeCache::Entry* GrThreadSafeCache::getEntry(const skgpu::UniqueKey& key, in getEntry()
199 const skgpu::UniqueKey& key, in internalAdd()
211 GrSurfaceProxyView GrThreadSafeCache::add(const skgpu::UniqueKey& key, in add()
221 const skgpu::UniqueKey& key, in addWithData()
228 GrSurfaceProxyView GrThreadSafeCache::findOrAdd(const skgpu::UniqueKey& key, in findOrAdd()
[all …]
DGrProxyProvider.h38 bool assignUniqueKeyToProxy(const skgpu::UniqueKey&, GrTextureProxy*);
55 sk_sp<GrTextureProxy> findProxyByUniqueKey(const skgpu::UniqueKey&);
61 sk_sp<GrTextureProxy> findOrCreateProxyByUniqueKey(const skgpu::UniqueKey&,
70 GrSurfaceProxyView findCachedProxyWithColorTypeFallback(const skgpu::UniqueKey&,
229 void processInvalidUniqueKey(const skgpu::UniqueKey&, GrTextureProxy*, InvalidateGPUResource);
284 void processInvalidUniqueKeyImpl(const skgpu::UniqueKey&, GrTextureProxy*,
303 static const skgpu::UniqueKey& GetKey(const GrTextureProxy& p) { return p.getUniqueKey(); } in GetKey()
305 static uint32_t Hash(const skgpu::UniqueKey& key) { return key.hash(); } in Hash()
307 …typedef SkTDynamicHash<GrTextureProxy, skgpu::UniqueKey, UniquelyKeyedProxyHashTraits> UniquelyKey…
DGrResourceProvider.h51 class UniqueKey; variable
70 findByUniqueKey(const skgpu::UniqueKey& key) { in findByUniqueKey()
225 const skgpu::UniqueKey& key,
241 const skgpu::UniqueKey& key);
260 const skgpu::UniqueKey& key) { in findOrCreatePatternedIndexBuffer()
351 void assignUniqueKeyToResource(const skgpu::UniqueKey&, GrGpuResource*);
374 sk_sp<GrGpuResource> findResourceByUniqueKey(const skgpu::UniqueKey&);
440 const skgpu::UniqueKey* key);
DGrResourceCache.h151 GrGpuResource* findAndRefUniqueResource(const skgpu::UniqueKey& key) { in findAndRefUniqueResource()
162 bool hasUniqueKey(const skgpu::UniqueKey& key) const { in hasUniqueKey()
300 void changeUniqueKey(GrGpuResource*, const skgpu::UniqueKey&);
339 static const skgpu::UniqueKey& GetKey(const GrGpuResource& r) { return r.getUniqueKey(); } in GetKey()
341 static uint32_t Hash(const skgpu::UniqueKey& key) { return key.hash(); } in Hash()
343 typedef SkTDynamicHash<GrGpuResource, skgpu::UniqueKey, UniqueHashTraits> UniqueHash;
448 void changeUniqueKey(GrGpuResource* resource, const skgpu::UniqueKey& newKey) { in changeUniqueKey()
DGrAttachment.cpp71 skgpu::UniqueKey* key) { in ComputeSharedAttachmentUniqueKey()
72 static const skgpu::UniqueKey::Domain kDomain = skgpu::UniqueKey::GenerateDomain(); in ComputeSharedAttachmentUniqueKey()
74 skgpu::UniqueKey::Builder builder(key, kDomain, 5); in ComputeSharedAttachmentUniqueKey()
DGrTextureProxy.h85 const skgpu::UniqueKey& getUniqueKey() const override { in getUniqueKey()
205 skgpu::UniqueKey fUniqueKey;
218 void setUniqueKey(GrProxyProvider*, const skgpu::UniqueKey&);
DGrBlurUtils.cpp102 skgpu::UniqueKey* key) { in sw_create_filtered_mask()
289 static bool compute_key_and_clip_bounds(skgpu::UniqueKey* maskKey, in compute_key_and_clip_bounds()
332 static const skgpu::UniqueKey::Domain kDomain = skgpu::UniqueKey::GenerateDomain(); in compute_key_and_clip_bounds()
333 skgpu::UniqueKey::Builder builder(maskKey, kDomain, 5 + 2 + shape.unstyledKeySize(), in compute_key_and_clip_bounds()
381 skgpu::UniqueKey* key) { in hw_create_filtered_mask()
514 skgpu::UniqueKey maskKey; in draw_shape_with_mask_filter()
DGrResourceAllocator.h149 uint32_t operator()(const skgpu::UniqueKey& key) const { return key.hash(); } in operator()
151 typedef SkTHashMap<skgpu::UniqueKey, Register*, UniqueKeyHash> UniqueKeyRegisterHash;
163 const skgpu::UniqueKey& uniqueKey() const { return fOriginatingProxy->getUniqueKey(); } in uniqueKey()
DSkGr.h46 namespace skgpu { class UniqueKey; } variable
200 void GrMakeKeyFromImageID(skgpu::UniqueKey* key, uint32_t imageID, const SkIRect& imageBounds);
208 sk_sp<SkIDChangeListener> GrMakeUniqueKeyInvalidationListener(skgpu::UniqueKey*,
DSkGr.cpp59 void GrMakeKeyFromImageID(skgpu::UniqueKey* key, uint32_t imageID, const SkIRect& imageBounds) { in GrMakeKeyFromImageID()
63 static const skgpu::UniqueKey::Domain kImageIDDomain = skgpu::UniqueKey::GenerateDomain(); in GrMakeKeyFromImageID()
64 skgpu::UniqueKey::Builder builder(key, kImageIDDomain, 5, "Image"); in GrMakeKeyFromImageID()
74 sk_sp<SkIDChangeListener> GrMakeUniqueKeyInvalidationListener(skgpu::UniqueKey* key, in GrMakeUniqueKeyInvalidationListener()
78 Listener(const skgpu::UniqueKey& key, uint32_t contextUniqueID) in GrMakeUniqueKeyInvalidationListener()
193 skgpu::UniqueKey key; in GrMakeCachedBitmapProxyView()
DClipStack.h91 UniqueKey testingOnly_getLastSWMaskKey() const { in testingOnly_getLastSWMaskKey()
92 return fMasks.empty() ? UniqueKey() : fMasks.back().key(); in testingOnly_getLastSWMaskKey()
187 const UniqueKey& key() const { return fKey; } in key()
196 UniqueKey fKey;
DGrGpuResource.h175 const skgpu::UniqueKey& getUniqueKey() const { return fUniqueKey; } in getUniqueKey()
292 void setUniqueKey(const skgpu::UniqueKey&);
313 skgpu::UniqueKey fUniqueKey;
/external/skia/src/gpu/
DResourceKey.h236 class UniqueKey : public ResourceKey {
243 UniqueKey() : fTag(nullptr) {} in UniqueKey() function
245 UniqueKey(const UniqueKey& that) { *this = that; } in UniqueKey() function
247 UniqueKey& operator=(const UniqueKey& that) {
254 bool operator==(const UniqueKey& that) const { return this->ResourceKey::operator==(that); }
255 bool operator!=(const UniqueKey& that) const { return !(*this == that); }
272 Builder(UniqueKey* key, Domain type, int data32Count, const char* tag = nullptr)
278 Builder(UniqueKey* key, const UniqueKey& innerKey, Domain domain, int extraData32Cnt,
293 static int Data32CntForInnerKey(const UniqueKey& innerKey) { in Data32CntForInnerKey()
315 static SkAlignedSTStorage<1, skgpu::UniqueKey> name##_storage; \
[all …]
DResourceKey.cpp24 UniqueKey::Domain UniqueKey::GenerateDomain() { in GenerateDomain()
/external/skia/src/gpu/graphite/
DGlobalCache.h41 sk_sp<GraphicsPipeline> findGraphicsPipeline(const UniqueKey&) SK_EXCLUDES(fSpinLock);
45 sk_sp<GraphicsPipeline> addGraphicsPipeline(const UniqueKey&,
54 sk_sp<ComputePipeline> findComputePipeline(const UniqueKey&) SK_EXCLUDES(fSpinLock);
55 sk_sp<ComputePipeline> addComputePipeline(const UniqueKey&,
66 uint32_t operator()(const UniqueKey& key) const { return key.hash(); } in operator()
69 using GraphicsPipelineCache = SkLRUCache<UniqueKey, sk_sp<GraphicsPipeline>, KeyHash>;
70 using ComputePipelineCache = SkLRUCache<UniqueKey, sk_sp<ComputePipeline>, KeyHash>;
DGlobalCache.cpp23 sk_sp<GraphicsPipeline> GlobalCache::findGraphicsPipeline(const UniqueKey& key) { in findGraphicsPipeline()
30 sk_sp<GraphicsPipeline> GlobalCache::addGraphicsPipeline(const UniqueKey& key, in addGraphicsPipeline()
58 sk_sp<ComputePipeline> GlobalCache::findComputePipeline(const UniqueKey& key) { in findComputePipeline()
64 sk_sp<ComputePipeline> GlobalCache::addComputePipeline(const UniqueKey& key, in addComputePipeline()
/external/skia/bench/
DGrResourceCacheBench.cpp29 static void ComputeKey(int i, int keyData32Count, skgpu::UniqueKey* key) { in ComputeKey()
30 static skgpu::UniqueKey::Domain kDomain = skgpu::UniqueKey::GenerateDomain(); in ComputeKey()
31 skgpu::UniqueKey::Builder builder(key, kDomain, keyData32Count); in ComputeKey()
46 skgpu::UniqueKey key; in populate_cache()
145 skgpu::UniqueKey key; in onDraw()
/external/skia/tests/
DTextureProxyTest.cpp115 static skgpu::UniqueKey::Domain d = skgpu::UniqueKey::GenerateDomain(); in wrapped_with_key()
118 skgpu::UniqueKey key; in wrapped_with_key()
120 skgpu::UniqueKey::Builder builder(&key, d, 1, nullptr); in wrapped_with_key()
166 skgpu::UniqueKey key; in basic_test()
192 const skgpu::UniqueKey texKey = proxy->peekSurface()->getUniqueKey(); in basic_test()
315 static skgpu::UniqueKey::Domain d = skgpu::UniqueKey::GenerateDomain(); in invalidation_and_instantiation_test()
316 skgpu::UniqueKey key; in invalidation_and_instantiation_test()
317 skgpu::UniqueKey::Builder builder(&key, d, 1, nullptr); in invalidation_and_instantiation_test()
DResourceCacheTest.cpp463 static void make_unique_key(skgpu::UniqueKey* key, int data, const char* tag = nullptr) { in make_unique_key()
464 static skgpu::UniqueKey::Domain d = skgpu::UniqueKey::GenerateDomain(); in make_unique_key()
465 skgpu::UniqueKey::Builder builder(key, d, 1, tag); in make_unique_key()
478 skgpu::UniqueKey uniqueKey; in test_purge_unlocked()
488 skgpu::UniqueKey uniqueKey2; in test_purge_unlocked()
605 skgpu::UniqueKey uniqueKey; in test_budgeting()
618 skgpu::UniqueKey uniqueKey2; in test_budgeting()
620 skgpu::UniqueKey uniqueKey3; in test_budgeting()
730 skgpu::UniqueKey uniqueKey; in test_unbudgeted()
1030 skgpu::UniqueKey key; in test_duplicate_unique_key()
[all …]
DGrThreadSafeCacheTest.cpp114 static void create_view_key(skgpu::UniqueKey* key, int wh, int id) { in create_view_key()
115 static const skgpu::UniqueKey::Domain kViewDomain = skgpu::UniqueKey::GenerateDomain(); in create_view_key()
116 skgpu::UniqueKey::Builder builder(key, kViewDomain, 1); in create_view_key()
125 static void create_vert_key(skgpu::UniqueKey* key, int wh, int id) { in create_vert_key()
126 static const skgpu::UniqueKey::Domain kVertDomain = skgpu::UniqueKey::GenerateDomain(); in create_vert_key()
127 skgpu::UniqueKey::Builder builder(key, kVertDomain, 1); in create_vert_key()
272 skgpu::UniqueKey key; in checkView()
358 skgpu::UniqueKey key; in checkVert()
556 skgpu::UniqueKey key; in findOrCreateVertices()
727 skgpu::UniqueKey key; in AccessCachedView()
[all …]
/external/skia/src/gpu/graphite/dawn/
DDawnCaps.cpp418 UniqueKey DawnCaps::makeGraphicsPipelineKey(const GraphicsPipelineDesc& pipelineDesc, in makeGraphicsPipelineKey()
420 UniqueKey pipelineKey; in makeGraphicsPipelineKey()
422 static const skgpu::UniqueKey::Domain kGraphicsPipelineDomain = UniqueKey::GenerateDomain(); in makeGraphicsPipelineKey()
424 UniqueKey::Builder builder(&pipelineKey, kGraphicsPipelineDomain, 4, "GraphicsPipeline"); in makeGraphicsPipelineKey()
439 UniqueKey DawnCaps::makeComputePipelineKey(const ComputePipelineDesc& pipelineDesc) const { in makeComputePipelineKey()
DDawnCaps.h34 UniqueKey makeGraphicsPipelineKey(const GraphicsPipelineDesc&,
36 UniqueKey makeComputePipelineKey(const ComputePipelineDesc&) const override;
/external/skia/src/gpu/ganesh/ops/
DTriangulatingPathRenderer.cpp89 UniqueKeyInvalidator(const skgpu::UniqueKey& key, uint32_t contextUniqueID) in UniqueKeyInvalidator()
243 static void CreateKey(skgpu::UniqueKey* key, in CreateKey()
246 static const skgpu::UniqueKey::Domain kDomain = skgpu::UniqueKey::GenerateDomain(); in CreateKey()
253 skgpu::UniqueKey::Builder builder(key, kDomain, shapeKeyDataCnt + kClipBoundsCnt, "Path"); in CreateKey()
293 skgpu::UniqueKey key; in createNonAAMesh()
452 skgpu::UniqueKey key; in onPrePrepareDraws()
/external/cronet/net/cookies/
Dcanonical_cookie.h202 return UniqueKey() < other.UniqueKey();
261 return UniqueKey() == ecc.UniqueKey(); in IsEquivalent()
268 UniqueCookieKey UniqueKey() const { in UniqueKey() function

123