diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-02-07 20:21:39 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-02-07 20:21:39 +0000 |
commit | 5b25a8d72d129cdfd8fe001635941cf725bcf2bd (patch) | |
tree | 12b4f59feb5256a8879e4717545e9bd123bb43a8 /src/gpu | |
parent | 9b63c50d72cc65c75f7dfe3147a489536ae019f9 (diff) |
Remove GR_DUMP_TEXTURE_UPLOADS
R=robertphillips@google.com
Review URL: https://codereview.appspot.com/7300062
git-svn-id: http://skia.googlecode.com/svn/trunk@7652 2bbb7eff-a529-9590-31e7-b0007b416f81
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; |