HomeSort by relevance Sort by last modified time
    Searched refs:GrResourceKey (Results 1 - 20 of 20) sorted by null

  /external/chromium_org/third_party/skia/src/gpu/
GrResourceCache2.h 13 #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;
GrStencilBuffer.cpp 36 GrResourceKey GrStencilBuffer::ComputeKey(int width,
40 static const GrResourceKey::ResourceType gStencilBufferResourceType =
41 GrResourceKey::GenerateResourceType();
46 return GrResourceKey(id, gStencilBufferResourceType, 0);
GrResourceCache.h 14 #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...]
GrPathRange.h 35 static GrResourceKey::ResourceType resourceType() {
36 static const GrResourceKey::ResourceType type = GrResourceKey::GenerateResourceType();
GrPath.cpp 16 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);
GrTexture.cpp 153 // 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 GrTextureImpl::ComputeScratchKey(const GrTextureDesc& desc)
    [all...]
GrPath.h 31 static GrResourceKey ComputeKey(const SkPath& path, const SkStrokeRec& stroke);
GrGpuResource.cpp 35 , fScratchKey(GrResourceKey::NullScratchKey()) {
84 void GrGpuResource::setScratchKey(const GrResourceKey& scratchKey) {
GrStencilBuffer.h 17 class GrResourceKey;
53 static GrResourceKey ComputeKey(int width, int height, int sampleCnt);
GrResourceCache.cpp 26 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,
GrStencilAndCoverPathRenderer.cpp 56 GrResourceKey resourceKey = GrPath::ComputeKey(skPath, stroke);
SkGr.cpp 121 explicit GrResourceInvalidator(GrResourceKey key) : fKey(key) {}
123 GrResourceKey fKey;
133 static void add_genID_listener(GrResourceKey key, SkPixelRef* pixelRef) {
151 GrResourceKey key;
GrContext.cpp 265 GrResourceKey resourceKey = GrTextureImpl::ComputeKey(fGpu, params, desc, cacheID);
274 GrResourceKey resourceKey = GrTextureImpl::ComputeKey(fGpu, params, desc, cacheID);
281 GrResourceKey resourceKey = GrStencilBuffer::ComputeKey(sb->width(),
289 GrResourceKey resourceKey = GrStencilBuffer::ComputeKey(width,
412 GrResourceKey* cacheKey) {
413 GrResourceKey resourceKey = GrTextureImpl::ComputeKey(fGpu, params, desc, cacheID);
446 GrResourceKey key = GrTextureImpl::ComputeScratchKey(texture->desc());
486 GrResourceKey key = GrTextureImpl::ComputeScratchKey(desc);
    [all...]
GrStencilAndCoverTextContext.cpp 228 GrResourceKey resourceKey = GrResourceKey(GrCacheID(gGlyphsDomain, key),
  /external/chromium_org/third_party/skia/include/gpu/
GrResourceKey.h 15 class GrResourceKey {
33 GrResourceKey(const GrCacheID& id, ResourceType type, ResourceFlags flags) {
37 GrResourceKey(const GrResourceKey& src) { fKey = src.fKey; }
39 GrResourceKey() { fKey.reset(); }
63 bool operator==(const GrResourceKey& other) const { return fKey == other.fKey; }
66 static GrResourceKey& NullScratchKey() {
69 static GrResourceKey kNullScratchKey(kBogusID, NoneResourceType(), 0);
GrGpuResource.h 13 #include "GrResourceKey.h"
184 const GrResourceKey& getScratchKey() const { return fScratchKey; }
224 void setScratchKey(const GrResourceKey& scratchKey);
254 GrResourceKey fScratchKey;
GrTexture.h 17 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);
GrContext.h 195 void addResourceToCache(const GrResourceKey&, GrGpuResource*);
202 GrGpuResource* findAndRefCachedResource(const GrResourceKey&);
238 GrResourceKey* cacheKey = NULL);
    [all...]
  /external/chromium_org/third_party/skia/bench/
GrResourceCacheBench.cpp 39 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/chromium_org/third_party/skia/tests/
ResourceCacheTest.cpp 115 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 key2(GrCacheID(domain, key2Data), t, 0)
    [all...]

Completed in 445 milliseconds