aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/ImageCacheTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ImageCacheTest.cpp')
-rw-r--r--tests/ImageCacheTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ImageCacheTest.cpp b/tests/ImageCacheTest.cpp
index 947ece1e21..877591acc7 100644
--- a/tests/ImageCacheTest.cpp
+++ b/tests/ImageCacheTest.cpp
@@ -48,14 +48,14 @@ static void TestImageCache(skiatest::Reporter* reporter) {
// stress test, should trigger purges
for (size_t i = 0; i < COUNT * 100; ++i) {
+ scale += 1;
+
SkBitmap tmp;
make_bm(&tmp, DIM, DIM);
id = cache.addAndLock(bm[0], scale, scale, tmp);
REPORTER_ASSERT(reporter, NULL != id);
cache.unlock(id);
-
- scale += 1;
}
cache.setByteLimit(0);