diff options
author | joshualitt <joshualitt@chromium.org> | 2015-12-02 09:05:37 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-02 09:05:38 -0800 |
commit | e45c81c8f3bb62e45f2ff3b8772b4b23f1ddc6ca (patch) | |
tree | fba6f2308c97b0ff2b611447a2d78e32f990be89 /include/gpu | |
parent | 6ee690e1d838e152c134257bdd57e9a1509ee7c2 (diff) |
Began logging more gpu stats from nanobench
BUG=skia:
Review URL: https://codereview.chromium.org/1489033004
Diffstat (limited to 'include/gpu')
-rw-r--r-- | include/gpu/GrContext.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h index b492fe7353..df96592e07 100644 --- a/include/gpu/GrContext.h +++ b/include/gpu/GrContext.h @@ -330,12 +330,16 @@ public: // Called by tests that draw directly to the context via GrDrawTarget void getTestTarget(GrTestTarget*, GrRenderTarget* rt); + /** Reset GPU stats */ + void resetGpuStats() const ; + /** Prints cache stats to the string if GR_CACHE_STATS == 1. */ void dumpCacheStats(SkString*) const; void printCacheStats() const; /** Prints GPU stats to the string if GR_GPU_STATS == 1. */ void dumpGpuStats(SkString*) const; + void dumpGpuStatsKeyValuePairs(SkTArray<SkString>* names, SkTArray<double>* values) const; void printGpuStats() const; /** Specify the TextBlob cache limit. If the current cache exceeds this limit it will purge. |