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

Unified Diff: bench/Benchmark.h

Issue 1379853003: Fix for nexus 5 crashing in GL benches (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add post hook Created 5 years, 3 months 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 | « no previous file | bench/Benchmark.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/Benchmark.h
diff --git a/bench/Benchmark.h b/bench/Benchmark.h
index 751172685ee9e5bf0c36610747a78c29cd74154a..12cb3034addd391424cdca9284c92a3528f58edf 100644
--- a/bench/Benchmark.h
+++ b/bench/Benchmark.h
@@ -75,6 +75,8 @@ public:
// Called once before and after a series of draw calls to a single canvas.
// The setup/break down in these calls is not timed.
void perCanvasPreDraw(SkCanvas*);
+ void perCanvasLastCallBeforeDraw(SkCanvas*);
mtklein_C 2015/09/30 17:26:29 Having names this similar to the perCanvas-flavore
joshualitt 2015/09/30 17:57:17 done
+ void perCanvasFirstCallAfterDraw(SkCanvas*);
void perCanvasPostDraw(SkCanvas*);
// Bench framework can tune loops to be large enough for stable timing.
@@ -114,6 +116,8 @@ protected:
virtual const char* onGetUniqueName() { return this->onGetName(); }
virtual void onPreDraw() {}
virtual void onPerCanvasPreDraw(SkCanvas*) {}
+ virtual void onPerCanvasLastCallBeforeDraw(SkCanvas*) {}
+ virtual void onPerCanvasFirstCallAfterDraw(SkCanvas*) {}
virtual void onPerCanvasPostDraw(SkCanvas*) {}
// Each bench should do its main work in a loop like this:
// for (int i = 0; i < loops; i++) { <work here> }
« no previous file with comments | « no previous file | bench/Benchmark.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698