diff options
author | 2016-08-09 11:44:12 -0700 | |
---|---|---|
committer | 2016-08-09 11:44:12 -0700 | |
commit | c0fc9d63569fe9bf6cd10fb028d0a0606278c2da (patch) | |
tree | 9bf91ddc846df16091651c65ac1741ac43eea5ed /src/core | |
parent | 3df72283ee3be2274597de8144a3750033832a76 (diff) |
SkLiteDL: tiny perf tweak
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2229003003
Review-Url: https://codereview.chromium.org/2229003003
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/SkLiteDL.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/SkLiteDL.cpp b/src/core/SkLiteDL.cpp index 329edb046b..8dad6f40e4 100644 --- a/src/core/SkLiteDL.cpp +++ b/src/core/SkLiteDL.cpp @@ -478,7 +478,8 @@ static void* push(SkTDArray<uint8_t>* bytes, size_t pod, Args&&... args) { template <typename Fn> static void map(SkTDArray<uint8_t>* bytes, Fn&& fn) { - for (uint8_t* ptr = bytes->begin(); ptr < bytes->end(); ) { + auto end = bytes->end(); + for (uint8_t* ptr = bytes->begin(); ptr < end; ) { auto op = (Op*)ptr; fn(op); ptr += op->skip; |