diff options
author | robertphillips <robertphillips@google.com> | 2015-11-06 05:59:14 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-06 05:59:14 -0800 |
commit | cf1d19805a289c612532cf2d4505bb348b78ba77 (patch) | |
tree | a54ed4ffad1796d1ea2debe463f9cd2aa614d372 /src/gpu/GrResourceCache.h | |
parent | 42597bc99f00553825843b5ed41e81b121773368 (diff) |
Revert of Update Layer Hoisting to store its atlas texture in the resource cache (patchset #6 id:100001 of https://codereview.chromium.org/1406013006/ )
Reason for revert:
Android
Original issue's description:
> Update Layer Hoisting to store its atlas texture in the resource cache
>
> BUG=skia:4346
>
> Committed: https://skia.googlesource.com/skia/+/42597bc99f00553825843b5ed41e81b121773368
TBR=bsalomon@google.com
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:4346
Review URL: https://codereview.chromium.org/1413483004
Diffstat (limited to 'src/gpu/GrResourceCache.h')
-rw-r--r-- | src/gpu/GrResourceCache.h | 47 |
1 files changed, 1 insertions, 46 deletions
diff --git a/src/gpu/GrResourceCache.h b/src/gpu/GrResourceCache.h index ed2affeae3..2412174121 100644 --- a/src/gpu/GrResourceCache.h +++ b/src/gpu/GrResourceCache.h @@ -182,52 +182,7 @@ public: void notifyFlushOccurred(); -#if GR_CACHE_STATS - struct Stats { - int fTotal; - int fNumPurgeable; - int fNumNonPurgeable; - - int fScratch; - int fExternal; - int fBorrowed; - int fAdopted; - size_t fUnbudgetedSize; - - Stats() { this->reset(); } - - void reset() { - fTotal = 0; - fNumPurgeable = 0; - fNumNonPurgeable = 0; - fScratch = 0; - fExternal = 0; - fBorrowed = 0; - fAdopted = 0; - fUnbudgetedSize = 0; - } - - void update(GrGpuResource* resource) { - if (resource->cacheAccess().isScratch()) { - ++fScratch; - } - if (resource->cacheAccess().isExternal()) { - ++fExternal; - } - if (resource->cacheAccess().isBorrowed()) { - ++fBorrowed; - } - if (resource->cacheAccess().isAdopted()) { - ++fAdopted; - } - if (!resource->resourcePriv().isBudgeted()) { - fUnbudgetedSize += resource->gpuMemorySize(); - } - } - }; - - void getStats(Stats*) const; - +#if GR_GPU_STATS void dumpStats(SkString*) const; #endif |