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

Unified Diff: bench/BigPathBench.cpp

Issue 1375363003: Factor out VisualBench timing code into a helper class (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: feedback inc Created 5 years, 2 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/BigPathBench.inc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/BigPathBench.cpp
diff --git a/bench/BigPathBench.cpp b/bench/BigPathBench.cpp
index 0ed8fc51e3660c60cfaaa110b6f298db7386ad33..f39fd73693e16d2585b0d0e06375ff2b957565d3 100644
--- a/bench/BigPathBench.cpp
+++ b/bench/BigPathBench.cpp
@@ -8,11 +8,7 @@
#include "Benchmark.h"
#include "SkCanvas.h"
#include "SkPath.h"
-#include "SkString.h"
-
-static void make_path(SkPath& path) {
- #include "BigPathBench.inc"
-}
+#include "sk_tool_utils.h"
enum Align {
kLeft_Align,
@@ -47,7 +43,7 @@ protected:
}
void onDelayedSetup() override {
- make_path(fPath);
+ sk_tool_utils::make_big_path(fPath);
}
void onDraw(int loops, SkCanvas* canvas) override {
« no previous file with comments | « no previous file | bench/BigPathBench.inc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698