Chromium Code Reviews| Index: src/gpu/GrTest.cpp |
| diff --git a/src/gpu/GrTest.cpp b/src/gpu/GrTest.cpp |
| index 7a754bc9f236788b926702b65679a1e05fb94561..61b31ac42901765a9141c40e545a2e2535143d03 100644 |
| --- a/src/gpu/GrTest.cpp |
| +++ b/src/gpu/GrTest.cpp |
| @@ -79,17 +79,17 @@ void GrResourceCache::dumpStats(SkString* out) const { |
| struct Stats { |
| int fScratch; |
| - int fWrapped; |
| + int fExternal; |
| size_t fUnbudgetedSize; |
| - Stats() : fScratch(0), fWrapped(0), fUnbudgetedSize(0) {} |
| + Stats() : fScratch(0), fExternal(0), fUnbudgetedSize(0) {} |
| void update(GrGpuResource* resource) { |
| if (resource->cacheAccess().isScratch()) { |
| ++fScratch; |
| } |
|
robertphillips
2015/06/18 14:18:49
Is it worth differentiating the counts for the bor
bsalomon
2015/06/18 15:19:37
Done.
|
| - if (resource->cacheAccess().isWrapped()) { |
| - ++fWrapped; |
| + if (resource->cacheAccess().isExternal()) { |
| + ++fExternal; |
| } |
| if (!resource->resourcePriv().isBudgeted()) { |
| fUnbudgetedSize += resource->gpuMemorySize(); |
| @@ -112,7 +112,7 @@ void GrResourceCache::dumpStats(SkString* out) const { |
| out->appendf("Budget: %d items %d bytes\n", fMaxCount, (int)fMaxBytes); |
| out->appendf("\t\tEntry Count: current %d" |
| " (%d budgeted, %d wrapped, %d locked, %d scratch %.2g%% full), high %d\n", |
| - this->getResourceCount(), fBudgetedCount, stats.fWrapped, locked, stats.fScratch, |
| + this->getResourceCount(), fBudgetedCount, stats.fExternal, locked, stats.fScratch, |
| countUtilization, fHighWaterCount); |
| out->appendf("\t\tEntry Bytes: current %d (budgeted %d, %.2g%% full, %d unbudgeted) high %d\n", |
| SkToInt(fBytes), SkToInt(fBudgetedBytes), byteUtilization, |
| @@ -179,9 +179,11 @@ private: |
| return NULL; |
| } |
| - GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&) override { return NULL; } |
| + GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, |
| + GrWrapOwnership) override { return NULL; } |
| - GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&) override { |
| + GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, |
| + GrWrapOwnership) override { |
| return NULL; |
| } |