Do not divide loops in PathBench
That breaks the assumption that the work is proportional to loops.
For example, loops = 5 and loops = 7 would result in the same count
if count = loops / 4.
Bug: skia:
Change-Id: Idae86d658cbfba8a7f49b983ed61a8b7fbea007a
Reviewed-on: https://skia-review.googlesource.com/46600
Commit-Queue: Yuqian Li <liyuqian@google.com>
Commit-Queue: Herb Derby <herb@google.com>
Reviewed-by: Herb Derby <herb@google.com>
diff --git a/bench/PathBench.cpp b/bench/PathBench.cpp
index 757ffcc..964a0e8 100644
--- a/bench/PathBench.cpp
+++ b/bench/PathBench.cpp
@@ -62,13 +62,7 @@
path.transform(m);
}
- int count = loops;
- if (fFlags & kBig_Flag) {
- count >>= 2;
- }
- count >>= (3 * complexity());
-
- for (int i = 0; i < SkTMax(1, count); i++) {
+ for (int i = 0; i < loops; i++) {
canvas->drawPath(path, paint);
}
}