Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Unified Diff: src/gpu/GrTest.cpp

Issue 1819863002: nanobench: Reduce the total number of statistics being captured. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrTest.cpp
diff --git a/src/gpu/GrTest.cpp b/src/gpu/GrTest.cpp
index 38758c6e57bf4cb6b651a3f078e6e39e217afa3f..4c5ce8e09925b61bade9248aaee52655d2dab6e4 100644
--- a/src/gpu/GrTest.cpp
+++ b/src/gpu/GrTest.cpp
@@ -186,10 +186,7 @@ void GrGpu::Stats::dump(SkString* out) {
void GrGpu::Stats::dumpKeyValuePairs(SkTArray<SkString>* keys, SkTArray<double>* values) {
keys->push_back(SkString("render_target_binds")); values->push_back(fRenderTargetBinds);
keys->push_back(SkString("shader_compilations")); values->push_back(fShaderCompilations);
- keys->push_back(SkString("textures_created")); values->push_back(fTextureCreates);
keys->push_back(SkString("texture_uploads")); values->push_back(fTextureUploads);
- keys->push_back(SkString("transfers_to_texture")); values->push_back(fTransfersToTexture);
- keys->push_back(SkString("stencil_buffer_creates")); values->push_back(fStencilAttachmentCreates);
keys->push_back(SkString("number_of_draws")); values->push_back(fNumDraws);
}
@@ -239,14 +236,7 @@ void GrResourceCache::dumpStatsKeyValuePairs(SkTArray<SkString>* keys,
Stats stats;
this->getStats(&stats);
- keys->push_back(SkString("gpu_cache_total_entries")); values->push_back(stats.fTotal);
- keys->push_back(SkString("gpu_cache_external_entries")); values->push_back(stats.fExternal);
- keys->push_back(SkString("gpu_cache_borrowed_entries")); values->push_back(stats.fBorrowed);
- keys->push_back(SkString("gpu_cache_adopted_entries")); values->push_back(stats.fAdopted);
keys->push_back(SkString("gpu_cache_purgable_entries")); values->push_back(stats.fNumPurgeable);
- keys->push_back(SkString("gpu_cache_non_purgable_entries")); values->push_back(stats.fNumNonPurgeable);
- keys->push_back(SkString("gpu_cache_scratch_entries")); values->push_back(stats.fScratch);
- keys->push_back(SkString("gpu_cache_unbudgeted_size")); values->push_back((double)stats.fUnbudgetedSize);
}
#endif
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698