aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-12-02 09:05:37 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-12-02 09:05:38 -0800
commite45c81c8f3bb62e45f2ff3b8772b4b23f1ddc6ca (patch)
treefba6f2308c97b0ff2b611447a2d78e32f990be89 /include/gpu
parent6ee690e1d838e152c134257bdd57e9a1509ee7c2 (diff)
Began logging more gpu stats from nanobench
Diffstat (limited to 'include/gpu')
-rw-r--r--include/gpu/GrContext.h4
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.