Home
last modified time | relevance | path

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

12

/external/skia/include/gpu/
DGrResourceKey.h220 class GrUniqueKey : public GrResourceKey {
230 GrUniqueKey() {} in GrUniqueKey() function
232 GrUniqueKey(const GrUniqueKey& that) { *this = that; } in GrUniqueKey() function
239 GrUniqueKey& operator=(const GrUniqueKey& that) {
245 bool operator==(const GrUniqueKey& that) const {
248 bool operator!=(const GrUniqueKey& that) const { return !(*this == that); }
260 Builder(GrUniqueKey* key, Domain domain, int data32Count) in Builder()
264 Builder(GrUniqueKey* key, const GrUniqueKey& innerKey, Domain domain, in Builder()
276 static int Data32CntForInnerKey(const GrUniqueKey& innerKey) { in Data32CntForInnerKey()
297 static SkAlignedSTStorage<1, GrUniqueKey> name##_storage; \
[all …]
DGrTextureProvider.h42 void assignUniqueKeyToTexture(const GrUniqueKey& key, GrTexture* texture) { in assignUniqueKeyToTexture()
47 GrTexture* findAndRefTextureByUniqueKey(const GrUniqueKey& key);
54 bool existsTextureWithUniqueKey(const GrUniqueKey& key) const { in existsTextureWithUniqueKey()
112 void assignUniqueKeyToResource(const GrUniqueKey&, GrGpuResource*);
119 GrGpuResource* findAndRefResourceByUniqueKey(const GrUniqueKey&);
126 bool existsResourceWithUniqueKey(const GrUniqueKey& key) const;
DGrGpuResource.h216 const GrUniqueKey& getUniqueKey() const { return fUniqueKey; } in getUniqueKey()
314 void setUniqueKey(const GrUniqueKey&);
337 GrUniqueKey fUniqueKey;
/external/skia/src/gpu/
DGrPath.cpp16 GrUniqueKey* key) { in compute_key_for_line_path()
26 static const GrUniqueKey::Domain kOvalPathDomain = GrUniqueKey::GenerateDomain(); in compute_key_for_line_path()
27 GrUniqueKey::Builder builder(key, kOvalPathDomain, kBaseData32Cnt + strokeDataCnt); in compute_key_for_line_path()
37 GrUniqueKey* key) { in compute_key_for_oval_path()
48 static const GrUniqueKey::Domain kOvalPathDomain = GrUniqueKey::GenerateDomain(); in compute_key_for_oval_path()
49 GrUniqueKey::Builder builder(key, kOvalPathDomain, kBaseData32Cnt + strokeDataCnt); in compute_key_for_oval_path()
62 GrUniqueKey* key) { in compute_key_for_simple_path()
113 static const GrUniqueKey::Domain kSimpleVolatilePathDomain = GrUniqueKey::GenerateDomain(); in compute_key_for_simple_path()
114 GrUniqueKey::Builder builder(key, kSimpleVolatilePathDomain, baseData32Cnt + strokeDataCnt); in compute_key_for_simple_path()
163 GrUniqueKey* key) { in compute_key_for_general_path()
[all …]
DGrImageIDTextureAdjuster.h25 void makeCopyKey(const CopyParams& params, GrUniqueKey* copyKey) override;
27 void didCacheCopy(const GrUniqueKey& copyKey) override;
41 void makeCopyKey(const CopyParams& params, GrUniqueKey* copyKey) override;
43 void didCacheCopy(const GrUniqueKey& copyKey) override;
60 void makeCopyKey(const CopyParams& copyParams, GrUniqueKey* copyKey) override;
62 void didCacheCopy(const GrUniqueKey& copyKey) override;
66 GrUniqueKey fOriginalKey;
84 void makeCopyKey(const CopyParams& stretch, GrUniqueKey* paramsCopyKey) override;
85 void didCacheCopy(const GrUniqueKey& copyKey) override;
90 GrUniqueKey fOriginalKey;
DGrImageIDTextureAdjuster.cpp26 void GrBitmapTextureAdjuster::makeCopyKey(const CopyParams& params, GrUniqueKey* copyKey) { in makeCopyKey()
34 GrUniqueKey baseKey; in makeCopyKey()
40 void GrBitmapTextureAdjuster::didCacheCopy(const GrUniqueKey& copyKey) { in didCacheCopy()
57 void GrImageTextureAdjuster::makeCopyKey(const CopyParams& params, GrUniqueKey* copyKey) { in makeCopyKey()
60 GrUniqueKey baseKey; in makeCopyKey()
66 void GrImageTextureAdjuster::didCacheCopy(const GrUniqueKey& copyKey) { in didCacheCopy()
102 void GrBitmapTextureMaker::makeCopyKey(const CopyParams& copyParams, GrUniqueKey* copyKey) { in makeCopyKey()
108 void GrBitmapTextureMaker::didCacheCopy(const GrUniqueKey& copyKey) { in didCacheCopy()
133 void GrImageTextureMaker::makeCopyKey(const CopyParams& stretch, GrUniqueKey* paramsCopyKey) { in makeCopyKey()
139 void GrImageTextureMaker::didCacheCopy(const GrUniqueKey& copyKey) { in didCacheCopy()
DGrTextureParamsAdjuster.h18 class GrUniqueKey; variable
82 static void MakeCopyKeyFromOrigKey(const GrUniqueKey& origKey, in MakeCopyKeyFromOrigKey()
84 GrUniqueKey* copyKey) { in MakeCopyKeyFromOrigKey()
87 static const GrUniqueKey::Domain kDomain = GrUniqueKey::GenerateDomain(); in MakeCopyKeyFromOrigKey()
88 GrUniqueKey::Builder builder(copyKey, origKey, kDomain, 3); in MakeCopyKeyFromOrigKey()
101 virtual void makeCopyKey(const CopyParams&, GrUniqueKey* copyKey) = 0;
108 virtual void didCacheCopy(const GrUniqueKey& copyKey) = 0;
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()
DGrResourceCache.h145 GrGpuResource* findAndRefUniqueResource(const GrUniqueKey& key) { in findAndRefUniqueResource()
156 bool hasUniqueKey(const GrUniqueKey& key) const { in hasUniqueKey()
250 void changeUniqueKey(GrGpuResource*, const GrUniqueKey&);
290 static const GrUniqueKey& GetKey(const GrGpuResource& r) { return r.getUniqueKey(); } in GetKey()
292 static uint32_t Hash(const GrUniqueKey& key) { return key.hash(); } in Hash()
294 typedef SkTDynamicHash<GrGpuResource, GrUniqueKey, UniqueHashTraits> UniqueHash;
405 void changeUniqueKey(GrGpuResource* resource, const GrUniqueKey& newKey) { in changeUniqueKey()
DGrResourceProvider.h41 template <typename T> T* findAndRefTByUniqueKey(const GrUniqueKey& key) { in findAndRefTByUniqueKey()
62 const GrUniqueKey& key) { in findOrCreateInstancedIndexBuffer()
164 const GrUniqueKey& key);
168 GrUniqueKey fQuadIndexBufferKey;
DGrTextureProvider.cpp141 void GrTextureProvider::assignUniqueKeyToResource(const GrUniqueKey& key, GrGpuResource* resource) { in assignUniqueKeyToResource()
149 bool GrTextureProvider::existsResourceWithUniqueKey(const GrUniqueKey& key) const { in existsResourceWithUniqueKey()
154 GrGpuResource* GrTextureProvider::findAndRefResourceByUniqueKey(const GrUniqueKey& key) { in findAndRefResourceByUniqueKey()
159 GrTexture* GrTextureProvider::findAndRefTextureByUniqueKey(const GrUniqueKey& key) { in findAndRefTextureByUniqueKey()
DSkGrPriv.h23 class GrUniqueKey; variable
40 void GrMakeKeyFromImageID(GrUniqueKey* key, uint32_t imageID, const SkIRect& imageBounds);
44 void GrInstallBitmapUniqueKeyInvalidator(const GrUniqueKey& key, SkPixelRef* pixelRef);
DSkGr.cpp52 void GrMakeKeyFromImageID(GrUniqueKey* key, uint32_t imageID, const SkIRect& imageBounds) { in GrMakeKeyFromImageID()
56 static const GrUniqueKey::Domain kImageIDDomain = GrUniqueKey::GenerateDomain(); in GrMakeKeyFromImageID()
57 GrUniqueKey::Builder builder(key, kImageIDDomain, 5); in GrMakeKeyFromImageID()
275 void GrInstallBitmapUniqueKeyInvalidator(const GrUniqueKey& key, SkPixelRef* pixelRef) { in GrInstallBitmapUniqueKeyInvalidator()
278 explicit Invalidator(const GrUniqueKey& key) : fMsg(key) {} in GrInstallBitmapUniqueKeyInvalidator()
DGrClipMaskManager.cpp583 static void GetClipMaskKey(int32_t clipGenID, const SkIRect& bounds, GrUniqueKey* key) { in GetClipMaskKey()
584 static const GrUniqueKey::Domain kDomain = GrUniqueKey::GenerateDomain(); in GetClipMaskKey()
585 GrUniqueKey::Builder builder(key, kDomain, 3); in GetClipMaskKey()
591 GrTexture* GrClipMaskManager::createCachedMask(int width, int height, const GrUniqueKey& key, in createCachedMask()
617 GrUniqueKey key; in createAlphaClipMask()
1089 GrUniqueKey key; in createSoftwareClipMask()
DGrPath.h33 static void ComputeKey(const SkPath& path, const GrStrokeInfo& stroke, GrUniqueKey* key,
DGrGpuResourcePriv.h26 void setUniqueKey(const GrUniqueKey& key) { fResource->setUniqueKey(key); } in setUniqueKey()
/external/skia/bench/
DGrResourceCacheBench.cpp31 static void ComputeKey(int i, int keyData32Count, GrUniqueKey* key) { in ComputeKey()
32 static GrUniqueKey::Domain kDomain = GrUniqueKey::GenerateDomain(); in ComputeKey()
33 GrUniqueKey::Builder builder(key, kDomain, keyData32Count); in ComputeKey()
46 GrUniqueKey key; in populate_cache()
145 GrUniqueKey key; in onDraw()
/external/skia/src/gpu/batches/
DGrTessellatingPathRenderer.cpp39 explicit PathInvalidator(const GrUniqueKey& key) : fMsg(key) {} in PathInvalidator()
106 int tessellate(GrUniqueKey* key, in tessellate()
147 static const GrUniqueKey::Domain kDomain = GrUniqueKey::GenerateDomain(); in onPrepareDraws()
148 GrUniqueKey key; in onPrepareDraws()
152 GrUniqueKey::Builder builder(&key, kDomain, 2 + clipBoundsSize32 + strokeDataSize32); in onPrepareDraws()
/external/skia/tests/
DResourceCacheTest.cpp403 template <int> static void make_unique_key(GrUniqueKey* key, int data) { in make_unique_key()
404 static GrUniqueKey::Domain d = GrUniqueKey::GenerateDomain(); in make_unique_key()
405 GrUniqueKey::Builder builder(key, d, 1); in make_unique_key()
414 GrUniqueKey uniqueKey; in test_budgeting()
431 GrUniqueKey uniqueKey2; in test_budgeting()
498 GrUniqueKey uniqueKey; in test_unbudgeted()
785 GrUniqueKey key; in test_duplicate_unique_key()
827 GrUniqueKey differentKey; in test_duplicate_unique_key()
861 GrUniqueKey key2; in test_duplicate_unique_key()
870 GrUniqueKey key3; in test_duplicate_unique_key()
[all …]
DGLProgramsTest.cpp164 GrUniqueKey key; in random_render_target()
165 static const GrUniqueKey::Domain kDomain = GrUniqueKey::GenerateDomain(); in random_render_target()
166 GrUniqueKey::Builder builder(&key, kDomain, 2); in random_render_target()
/external/skia/src/effects/
DGrCircleBlurFragmentProcessor.cpp236 static const GrUniqueKey::Domain kDomain = GrUniqueKey::GenerateDomain(); in CreateCircleBlurProfileTexture()
237 GrUniqueKey key; in CreateCircleBlurProfileTexture()
238 GrUniqueKey::Builder builder(&key, kDomain, 2); in CreateCircleBlurProfileTexture()
DSkColorCubeFilter.cpp302 static const GrUniqueKey::Domain kDomain = GrUniqueKey::GenerateDomain(); in asFragmentProcessor()
303 GrUniqueKey key; in asFragmentProcessor()
304 GrUniqueKey::Builder builder(&key, kDomain, 2); in asFragmentProcessor()
/external/skia/src/core/
DSkImageCacherator.h17 class GrUniqueKey; variable
77 GrTexture* lockTexture(GrContext*, const GrUniqueKey& key, const SkImage* client,
/external/skia/src/gpu/effects/
DGrTextureStripAtlas.cpp198 static const GrUniqueKey::Domain kDomain = GrUniqueKey::GenerateDomain(); in lockTexture()
199 GrUniqueKey key; in lockTexture()
200 GrUniqueKey::Builder builder(&key, kDomain, 1); in lockTexture()
/external/skia/src/gpu/text/
DGrStencilAndCoverTextContext.cpp404 static const GrUniqueKey::Domain kRawFillPathGlyphDomain = GrUniqueKey::GenerateDomain(); in TextRun()
407 GrUniqueKey::Builder builder(&fGlyphPathsKey, kRawFillPathGlyphDomain, 1); in TextRun()
410 static const GrUniqueKey::Domain kPathGlyphDomain = GrUniqueKey::GenerateDomain(); in TextRun()
415 GrUniqueKey::Builder builder(&fGlyphPathsKey, kPathGlyphDomain, 2 + strokeDataCount); in TextRun()
424 GrUniqueKey::Builder builder(&fGlyphPathsKey, kPathGlyphDomain, in TextRun()

12