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:
parent
9b63c50d72
commit
5b25a8d72d
@ -325,10 +325,6 @@ inline void GrCrash(const char* msg) { GrPrintf(msg); GrAlwaysAssert(false); }
|
|||||||
#define GR_TEXT_SCALAR_TYPE_IS_FIXED 0
|
#define GR_TEXT_SCALAR_TYPE_IS_FIXED 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef GR_DUMP_TEXTURE_UPLOAD
|
|
||||||
#define GR_DUMP_TEXTURE_UPLOAD 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GR_DISABLE_DRAW_BUFFERING prevents GrContext from queueing draws in a
|
* GR_DISABLE_DRAW_BUFFERING prevents GrContext from queueing draws in a
|
||||||
* GrInOrderDrawBuffer.
|
* GrInOrderDrawBuffer.
|
||||||
|
@ -21,12 +21,6 @@
|
|||||||
#define GR_DEBUG 1
|
#define GR_DEBUG 1
|
||||||
#endif
|
#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
|
* This causes the GrContext to execute all draws immediately in the 3D API
|
||||||
* rather than internally queuing draws.
|
* rather than internally queuing draws.
|
||||||
|
@ -351,10 +351,6 @@ GrTexture* GrContext::createTexture(const GrTextureParams* params,
|
|||||||
size_t rowBytes) {
|
size_t rowBytes) {
|
||||||
SK_TRACE_EVENT0("GrContext::createTexture");
|
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);
|
GrResourceKey resourceKey = GrTexture::ComputeKey(fGpu, params, desc, cacheID);
|
||||||
|
|
||||||
GrTexture* texture;
|
GrTexture* texture;
|
||||||
|
@ -214,11 +214,6 @@ void GrResourceCache::addResource(const GrResourceKey& key,
|
|||||||
this->attachToHead(entry);
|
this->attachToHead(entry);
|
||||||
fCache.insert(key, 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) {
|
if (ownershipFlags & kHide_OwnershipFlag) {
|
||||||
this->makeExclusive(entry);
|
this->makeExclusive(entry);
|
||||||
}
|
}
|
||||||
@ -315,14 +310,6 @@ void GrResourceCache::purgeAsNeeded() {
|
|||||||
|
|
||||||
// remove from our llist
|
// remove from our llist
|
||||||
this->internalDetach(entry);
|
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;
|
delete entry;
|
||||||
}
|
}
|
||||||
entry = prev;
|
entry = prev;
|
||||||
|
Loading…
Reference in New Issue
Block a user