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

Unified Diff: bench/Benchmark.cpp

Issue 731973005: Add MultiPictureDraw to nanobench (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Disable multithreading in nanobench Created 6 years, 1 month 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 | « bench/Benchmark.h ('k') | bench/SKPBench.h » ('j') | bench/nanobench.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/Benchmark.cpp
diff --git a/bench/Benchmark.cpp b/bench/Benchmark.cpp
index 88e385d2d1840a841c9b0e6dc84c73107c4c7af7..6040f913ef3c7b3d107fe498ffd15a7df851aa72 100644
--- a/bench/Benchmark.cpp
+++ b/bench/Benchmark.cpp
@@ -37,6 +37,14 @@ void Benchmark::preDraw() {
this->onPreDraw();
}
+void Benchmark::perCanvasPreDraw(SkCanvas* canvas) {
+ this->onPerCanvasPreDraw(canvas);
+}
+
+void Benchmark::perCanvasPostDraw(SkCanvas* canvas) {
+ this->onPerCanvasPostDraw(canvas);
+}
+
void Benchmark::draw(const int loops, SkCanvas* canvas) {
SkAutoCanvasRestore ar(canvas, true/*save now*/);
this->onDraw(loops, canvas);
« no previous file with comments | « bench/Benchmark.h ('k') | bench/SKPBench.h » ('j') | bench/nanobench.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698