Index: tests/ResourceCacheTest.cpp |
diff --git a/tests/ResourceCacheTest.cpp b/tests/ResourceCacheTest.cpp |
index 2cbf81c231d049c17f55926a04f40bcd51a971ac..b568485e4bcfe8c9cd99cf1edb79239fa4be2688 100644 |
--- a/tests/ResourceCacheTest.cpp |
+++ b/tests/ResourceCacheTest.cpp |
@@ -1133,7 +1133,7 @@ static void test_flush(skiatest::Reporter* reporter) { |
make_unique_key<1>(&k, i); |
r->resourcePriv().setUniqueKey(k); |
r->unref(); |
- cache->notifyFlushOccurred(); |
+ cache->notifyFlushOccurred(GrResourceCache::kExternal); |
} |
// Send flush notifications to the cache. Each flush should purge the oldest resource. |
@@ -1147,7 +1147,7 @@ static void test_flush(skiatest::Reporter* reporter) { |
REPORTER_ASSERT(reporter, !SkToBool(r)); |
SkSafeUnref(r); |
} |
- cache->notifyFlushOccurred(); |
+ cache->notifyFlushOccurred(GrResourceCache::kExternal); |
} |
REPORTER_ASSERT(reporter, 0 == cache->getResourceCount()); |
@@ -1169,13 +1169,13 @@ static void test_flush(skiatest::Reporter* reporter) { |
} else { |
r->unref(); |
} |
- cache->notifyFlushOccurred(); |
+ cache->notifyFlushOccurred(GrResourceCache::kExternal); |
} |
for (int i = 0; i < kFlushCount; ++i) { |
// Should get a resource purged every other flush. |
REPORTER_ASSERT(reporter, kFlushCount - i/2 - 1 == cache->getResourceCount()); |
- cache->notifyFlushOccurred(); |
+ cache->notifyFlushOccurred(GrResourceCache::kExternal); |
} |
// Unref all the resources that we kept refs on in the first loop. |
@@ -1187,7 +1187,7 @@ static void test_flush(skiatest::Reporter* reporter) { |
// get kFlushCount additional flushes. Then everything should be purged. |
for (int i = 0; i < kFlushCount; ++i) { |
REPORTER_ASSERT(reporter, kFlushCount >> 1 == cache->getResourceCount()); |
- cache->notifyFlushOccurred(); |
+ cache->notifyFlushOccurred(GrResourceCache::kExternal); |
} |
REPORTER_ASSERT(reporter, 0 == cache->getResourceCount()); |