Searched refs:GrResourceKey (Results 1 - 25 of 33) sorted by relevance

12

/external/skia/src/gpu/
H A DGrPath.cpp10 GrResourceKey GrPath::ComputeKey(const SkPath& path, const SkStrokeRec& stroke) {
11 static const GrResourceKey::ResourceType gPathResourceType = GrResourceKey::GenerateResourceType();
30 return GrResourceKey(GrCacheID(gPathDomain, key), gPathResourceType, 0);
H A DGrStencilBuffer.cpp36 GrResourceKey GrStencilBuffer::ComputeKey(int width,
40 static const GrResourceKey::ResourceType gStencilBufferResourceType =
41 GrResourceKey::GenerateResourceType();
46 return GrResourceKey(id, gStencilBufferResourceType, 0);
H A DGrResourceCache.h25 class GrResourceKey { class
43 GrResourceKey(const GrCacheID& id, ResourceType type, ResourceFlags flags) { function in class:GrResourceKey
47 GrResourceKey(const GrResourceKey& src) { function in class:GrResourceKey
51 GrResourceKey() { function in class:GrResourceKey
79 bool operator==(const GrResourceKey& other) const { return fKey == other.fKey; }
114 GrResourceKey key;
122 const GrResourceKey& key() const { return fKey; }
124 static const GrResourceKey& GetKey(const GrResourceCacheEntry& e) { return e.key(); }
125 static uint32_t Hash(const GrResourceKey
[all...]
H A DGrTexture.cpp153 // These flags need to fit in a GrResourceKey::ResourceFlags so they can be folded into the texture
169 GrResourceKey::ResourceFlags get_texture_flags(const GrGpu* gpu,
172 GrResourceKey::ResourceFlags flags = 0;
190 GrResourceKey::ResourceType texture_resource_type() {
191 static const GrResourceKey::ResourceType gType = GrResourceKey::GenerateResourceType();
211 GrResourceKey GrTextureImpl::ComputeKey(const GrGpu* gpu,
215 GrResourceKey::ResourceFlags flags = get_texture_flags(gpu, params, desc);
216 return GrResourceKey(cacheID, texture_resource_type(), flags);
219 GrResourceKey GrTextureImp
[all...]
H A DGrStencilBuffer.h17 class GrResourceKey;
53 static GrResourceKey ComputeKey(int width, int height, int sampleCnt);
H A DGrPath.h28 static GrResourceKey ComputeKey(const SkPath& path, const SkStrokeRec& stroke);
H A DSkGr.cpp119 explicit GrResourceInvalidator(GrResourceKey key) : fKey(key) {}
121 GrResourceKey fKey;
131 static void add_genID_listener(GrResourceKey key, SkPixelRef* pixelRef) {
187 GrResourceKey key;
223 GrResourceKey key;
276 GrResourceKey key;
/external/chromium_org/third_party/skia/src/gpu/
H A DGrResourceCache2.h13 #include "GrResourceKey.h"
45 static const GrResourceKey& GetKey(const GrGpuResource& r) {
49 static uint32_t Hash(const GrResourceKey& key) { return key.getHash(); }
51 typedef SkTMultiMap<GrGpuResource, GrResourceKey, ScratchMapTraits> ScratchMap;
H A DGrStencilBuffer.cpp36 GrResourceKey GrStencilBuffer::ComputeKey(int width,
40 static const GrResourceKey::ResourceType gStencilBufferResourceType =
41 GrResourceKey::GenerateResourceType();
46 return GrResourceKey(id, gStencilBufferResourceType, 0);
H A DGrPath.cpp16 GrResourceKey GrPath::ComputeKey(const SkPath& path, const SkStrokeRec& stroke) {
17 static const GrResourceKey::ResourceType gPathResourceType = GrResourceKey::GenerateResourceType();
25 return GrResourceKey(GrCacheID(gPathDomain, key), gPathResourceType, 0);
H A DGrResourceCache.h14 #include "GrResourceKey.h"
26 GrResourceKey key;
34 const GrResourceKey& key() const { return fKey; }
36 static const GrResourceKey& GetKey(const GrResourceCacheEntry& e) { return e.key(); }
37 static uint32_t Hash(const GrResourceKey& key) { return key.getHash(); }
53 const GrResourceKey& key,
58 GrResourceKey fKey;
75 * These have a corresponding GrResourceKey, built from 128bits identifying the
76 * resource. Multiple resources can map to same GrResourceKey.
83 * For fast searches, we maintain a hash map based on the GrResourceKey
[all...]
H A DGrTexture.cpp153 // These flags need to fit in a GrResourceKey::ResourceFlags so they can be folded into the texture
169 GrResourceKey::ResourceFlags get_texture_flags(const GrGpu* gpu,
172 GrResourceKey::ResourceFlags flags = 0;
190 GrResourceKey::ResourceType texture_resource_type() {
191 static const GrResourceKey::ResourceType gType = GrResourceKey::GenerateResourceType();
216 GrResourceKey GrTextureImpl::ComputeKey(const GrGpu* gpu,
220 GrResourceKey::ResourceFlags flags = get_texture_flags(gpu, params, desc);
221 return GrResourceKey(cacheID, texture_resource_type(), flags);
224 GrResourceKey GrTextureImp
[all...]
H A DGrPathRange.h35 static GrResourceKey::ResourceType resourceType() {
36 static const GrResourceKey::ResourceType type = GrResourceKey::GenerateResourceType();
H A DGrGpuResource.cpp35 , fScratchKey(GrResourceKey::NullScratchKey()) {
84 void GrGpuResource::setScratchKey(const GrResourceKey& scratchKey) {
H A DGrStencilBuffer.h17 class GrResourceKey;
53 static GrResourceKey ComputeKey(int width, int height, int sampleCnt);
H A DGrPath.h31 static GrResourceKey ComputeKey(const SkPath& path, const SkStrokeRec& stroke);
H A DGrResourceCache.cpp26 GrResourceKey::ResourceType GrResourceKey::GenerateResourceType() {
40 const GrResourceKey& key,
200 GrGpuResource* GrResourceCache::find(const GrResourceKey& key, uint32_t ownershipFlags) {
228 void GrResourceCache::addResource(const GrResourceKey& key,
/external/chromium_org/third_party/skia/include/gpu/
H A DGrResourceKey.h15 class GrResourceKey { class
33 GrResourceKey(const GrCacheID& id, ResourceType type, ResourceFlags flags) { function in class:GrResourceKey
37 GrResourceKey(const GrResourceKey& src) { fKey = src.fKey; } function in class:GrResourceKey
39 GrResourceKey() { fKey.reset(); } function in class:GrResourceKey
63 bool operator==(const GrResourceKey& other) const { return fKey == other.fKey; }
66 static GrResourceKey& NullScratchKey() {
69 static GrResourceKey kNullScratchKey(kBogusID, NoneResourceType(), 0);
H A DGrTexture.h17 class GrResourceKey;
157 static GrResourceKey ComputeKey(const GrGpu* gpu,
161 static GrResourceKey ComputeScratchKey(const GrTextureDesc& desc);
162 static bool NeedsResizing(const GrResourceKey& key);
163 static bool NeedsBilerp(const GrResourceKey& key);
H A DGrGpuResource.h13 #include "GrResourceKey.h"
184 const GrResourceKey& getScratchKey() const { return fScratchKey; }
224 void setScratchKey(const GrResourceKey& scratchKey);
254 GrResourceKey fScratchKey;
/external/chromium_org/third_party/skia/bench/
H A DGrResourceCacheBench.cpp39 static GrResourceKey ComputeKey(int width, int height, int sampleCnt) {
64 static GrResourceKey ComputeKey(const GrTextureDesc& desc) {
93 GrResourceKey key = GrStencilBuffer::ComputeKey(w, h, s);
103 GrResourceKey key = TextureResource::ComputeKey(desc);
116 GrResourceKey key = TextureResource::ComputeKey(desc);
130 GrResourceKey key = StencilResource::ComputeKey(w, h, s);
147 GrResourceKey key = TextureResource::ComputeKey(desc);
158 GrResourceKey key = StencilResource::ComputeKey(w, h, s);
/external/skia/bench/
H A DGrResourceCacheBench.cpp39 static GrResourceKey ComputeKey(int width, int height, int sampleCnt) {
64 static GrResourceKey ComputeKey(const GrTextureDesc& desc) {
93 GrResourceKey key = GrStencilBuffer::ComputeKey(w, h, s);
103 GrResourceKey key = TextureResource::ComputeKey(desc);
116 GrResourceKey key = TextureResource::ComputeKey(desc);
130 GrResourceKey key = StencilResource::ComputeKey(w, h, s);
147 GrResourceKey key = TextureResource::ComputeKey(desc);
158 GrResourceKey key = StencilResource::ComputeKey(w, h, s);
/external/skia/include/gpu/
H A DGrTexture.h16 class GrResourceKey;
156 static GrResourceKey ComputeKey(const GrGpu* gpu,
160 static GrResourceKey ComputeScratchKey(const GrTextureDesc& desc);
161 static bool NeedsResizing(const GrResourceKey& key);
162 static bool NeedsBilerp(const GrResourceKey& key);
/external/chromium_org/third_party/skia/tests/
H A DResourceCacheTest.cpp115 GrResourceKey::ResourceType t = GrResourceKey::GenerateResourceType();
116 GrResourceKey key(GrCacheID(domain, keyData), t, 0);
150 GrResourceKey::ResourceType t = GrResourceKey::GenerateResourceType();
152 GrResourceKey key(GrCacheID(domain, keyData), t, 0);
193 GrResourceKey::ResourceType t = GrResourceKey::GenerateResourceType();
198 GrResourceKey key1(GrCacheID(domain, key1Data), t, 0);
203 GrResourceKey key
[all...]
/external/skia/tests/
H A DResourceCacheTest.cpp113 GrResourceKey::ResourceType t = GrResourceKey::GenerateResourceType();
114 GrResourceKey key(GrCacheID(domain, keyData), t, 0);
148 GrResourceKey::ResourceType t = GrResourceKey::GenerateResourceType();
150 GrResourceKey key(GrCacheID(domain, keyData), t, 0);
191 GrResourceKey::ResourceType t = GrResourceKey::GenerateResourceType();
196 GrResourceKey key1(GrCacheID(domain, key1Data), t, 0);
201 GrResourceKey key
[all...]

Completed in 284 milliseconds

12