diff options
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/GrContext.cpp | 4 | ||||
-rw-r--r-- | src/gpu/GrResourceCache.cpp | 13 |
2 files changed, 0 insertions, 17 deletions
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp index c9d6f65887..2549576c87 100644 --- a/src/gpu/GrContext.cpp +++ b/src/gpu/GrContext.cpp @@ -351,10 +351,6 @@ GrTexture* GrContext::createTexture(const GrTextureParams* params, size_t rowBytes) { SK_TRACE_EVENT0("GrContext::createTexture"); -#if GR_DUMP_TEXTURE_UPLOAD - GrPrintf("GrContext::createTexture[%d %d]\n", desc.fWidth, desc.fHeight); -#endif - GrResourceKey resourceKey = GrTexture::ComputeKey(fGpu, params, desc, cacheID); GrTexture* texture; diff --git a/src/gpu/GrResourceCache.cpp b/src/gpu/GrResourceCache.cpp index 45b999f3d0..fa4edadfe9 100644 --- a/src/gpu/GrResourceCache.cpp +++ b/src/gpu/GrResourceCache.cpp @@ -214,11 +214,6 @@ void GrResourceCache::addResource(const GrResourceKey& key, this->attachToHead(entry); fCache.insert(key, entry); -#if GR_DUMP_TEXTURE_UPLOAD - GrPrintf("--- add resource to cache %p, count=%d bytes= %d %d\n", - entry, fEntryCount, resource->sizeInBytes(), fEntryBytes); -#endif - if (ownershipFlags & kHide_OwnershipFlag) { this->makeExclusive(entry); } @@ -315,14 +310,6 @@ void GrResourceCache::purgeAsNeeded() { // remove from our llist this->internalDetach(entry); - - #if GR_DUMP_TEXTURE_UPLOAD - GrPrintf("--- ~resource from cache %p [%d %d]\n", - entry->resource(), - entry->resource()->width(), - entry->resource()->height()); - #endif - delete entry; } entry = prev; |