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

Unified Diff: src/core/SkLiteDL.cpp

Issue 2229003003: SkLiteDL: tiny perf tweak (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkLiteDL.cpp
diff --git a/src/core/SkLiteDL.cpp b/src/core/SkLiteDL.cpp
index 329edb046b30b819cedf562e086dd51747cc6016..8dad6f40e482c04ef4200a6f35a6c7d5bb6e714b 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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698