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
This commit is contained in:
bsalomon@google.com 2013-02-07 20:21:39 +00:00
parent 9b63c50d72
commit 5b25a8d72d
4 changed files with 0 additions and 27 deletions

View File

@ -325,10 +325,6 @@ inline void GrCrash(const char* msg) { GrPrintf(msg); GrAlwaysAssert(false); }
#define GR_TEXT_SCALAR_TYPE_IS_FIXED 0
#endif
#ifndef GR_DUMP_TEXTURE_UPLOAD
#define GR_DUMP_TEXTURE_UPLOAD 0
#endif
/**
* GR_DISABLE_DRAW_BUFFERING prevents GrContext from queueing draws in a
* GrInOrderDrawBuffer.

View File

@ -21,12 +21,6 @@
#define GR_DEBUG 1
#endif
/*
* To diagnose texture cache performance, define this to 1 if you want to see
* a log statement everytime we upload an image to create a texture.
*/
//#define GR_DUMP_TEXTURE_UPLOAD 1
/*
* This causes the GrContext to execute all draws immediately in the 3D API
* rather than internally queuing draws.

View File

@ -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;

View File

@ -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;