From 0b4d8aa108f2fd14f1ee4de1affacab166d7a357 Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Wed, 11 Oct 2017 15:34:27 -0400 Subject: 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 Commit-Queue: Brian Salomon --- bench/nanobench.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bench/nanobench.h') 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; -- cgit v1.2.3