diff options
author | Brian Salomon <bsalomon@google.com> | 2017-10-11 15:34:27 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-10-11 20:32:49 +0000 |
commit | 0b4d8aa108f2fd14f1ee4de1affacab166d7a357 (patch) | |
tree | 1a63c56bd675ebf9400980f25ebc61bb88bfaa56 /bench/nanobench.h | |
parent | ba1c7901a7448a388fd835e487b6b9d223236826 (diff) |
Add benchmark for comparing multitexturing to non-multitexturing image draws.
Allows benchmarks to override GrContextOptions.
Removes the ability to use the same GrContext for all benchmarks in a config.
Change-Id: I5ab9f6e81055451ac912a66537843d1a49f3b479
Reviewed-on: https://skia-review.googlesource.com/34080
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'bench/nanobench.h')
-rw-r--r-- | bench/nanobench.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bench/nanobench.h b/bench/nanobench.h index ffd6893c4a..45882cc043 100644 --- a/bench/nanobench.h +++ b/bench/nanobench.h @@ -79,6 +79,9 @@ struct Target { /** Writes any config-specific data to the log. */ virtual void fillOptions(ResultsWriter*) { } + /** Writes gathered stats using SkDebugf. */ + virtual void dumpStats() {} + SkCanvas* getCanvas() const { if (!surface.get()) { return nullptr; |