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

Unified Diff: bench/benchmain.cpp

Issue 329853007: Remove SkBenchmark::postDraw. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: dm too Created 6 years, 6 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 | « bench/SkBenchmark.cpp ('k') | dm/DMBenchTask.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/benchmain.cpp
diff --git a/bench/benchmain.cpp b/bench/benchmain.cpp
index 42428b44b0674017595c5a39b9db4cfbf91a023d..af708782822186e6516efa94665d9ebf04fa5607 100644
--- a/bench/benchmain.cpp
+++ b/bench/benchmain.cpp
@@ -78,18 +78,6 @@ private:
const skiagm::GMRegistry* fGMs;
};
-class AutoPrePostDraw {
-public:
- AutoPrePostDraw(SkBenchmark* bench) : fBench(bench) {
- fBench->preDraw();
- }
- ~AutoPrePostDraw() {
- fBench->postDraw();
- }
-private:
- SkBenchmark* fBench;
-};
-
static void make_filename(const char name[], SkString* path) {
path->set(name);
for (int i = 0; name[i]; i++) {
@@ -462,7 +450,7 @@ int tool_main(int argc, char** argv) {
bench->setForceAA(FLAGS_forceAA);
bench->setForceFilter(FLAGS_forceFilter);
bench->setDither(dither);
- AutoPrePostDraw appd(bench);
+ bench->preDraw();
bool loggedBenchName = false;
for (int i = 0; i < configs.count(); ++i) {
« no previous file with comments | « bench/SkBenchmark.cpp ('k') | dm/DMBenchTask.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698