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

Unified Diff: bench/nanobench.cpp

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
« bench/Benchmark.h ('K') | « bench/GLBench.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/nanobench.cpp
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
index a1db0acd80b4e6616b87ae8261cb51a570618e0e..99be03042e91b9ccab16b80548176d38d3936727 100644
--- a/bench/nanobench.cpp
+++ b/bench/nanobench.cpp
@@ -208,6 +208,7 @@ static double time(int loops, Benchmark* bench, Target* target) {
if (canvas) {
canvas->clear(SK_ColorWHITE);
}
+ bench->perCanvasLastCallBeforeDraw(canvas);
WallTimer timer;
timer.start();
canvas = target->beginTiming(canvas);
@@ -217,6 +218,7 @@ static double time(int loops, Benchmark* bench, Target* target) {
}
target->endTiming();
timer.end();
+ bench->perCanvasFirstCallAfterDraw(canvas);
return timer.fWall;
}
« bench/Benchmark.h ('K') | « bench/GLBench.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698