Skip to content
This repository has been archived by the owner on Feb 25, 2025. It is now read-only.

Commit

Permalink
Update PathIterBench to use the new RangeIter instead of RawIter
Browse files Browse the repository at this point in the history
Change-Id: I9508790d67bf62b5a064ff5222a74e9566354351
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/287888
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
  • Loading branch information
csmartdalton86 authored and Skia Commit-Bot committed May 7, 2020
1 parent 0066ade commit 8650d33
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bench/PathIterBench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,8 @@ class PathIterBench : public Benchmark {
break;
case PathIterType::kRaw:
for (int i = 0; i < loops; ++i) {
SkPath::RawIter iter(fPath);
while ((verb = iter.next(pts)) != SkPath::kDone_Verb) {
handle(verb, pts);
for (auto [verb, pts, w] : SkPathPriv::Iterate(fPath)) {
handle((SkPath::Verb)verb, pts);
}
}
break;
Expand Down

0 comments on commit 8650d33

Please sign in to comment.