aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/CachedDataTest.cpp
diff options
context:
space:
mode:
authorGravatar Hal Canary <halcanary@google.com>2017-04-19 13:17:59 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-04-25 13:12:54 +0000
commita294be24040262d530c54dc01fc322132c5d2a24 (patch)
tree9ca2c11a82977a53124e4f4f31bee5885528c37f /tests/CachedDataTest.cpp
parent600effbdc7d8fb1cfb1b9dcecf785a2e42cc1cc3 (diff)
SkDiscardableMemoryPool: modernize
* Use unique_ptr, sk_sp, SkAutoFree, using. * Rely on thread-safe static global initializion. Change-Id: I7c14e0e57622163b1b81b97a218b816fe6d02926 Reviewed-on: https://skia-review.googlesource.com/13818 Commit-Queue: Hal Canary <halcanary@google.com> Reviewed-by: Herb Derby <herb@google.com>
Diffstat (limited to 'tests/CachedDataTest.cpp')
-rw-r--r--tests/CachedDataTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/CachedDataTest.cpp b/tests/CachedDataTest.cpp
index b2d47855bd..fe7bb5f547 100644
--- a/tests/CachedDataTest.cpp
+++ b/tests/CachedDataTest.cpp
@@ -72,7 +72,7 @@ static SkCachedData* test_locking(skiatest::Reporter* reporter,
* and when the cache is.
*/
DEF_TEST(CachedData, reporter) {
- sk_sp<SkDiscardableMemoryPool> pool(SkDiscardableMemoryPool::Create(1000));
+ sk_sp<SkDiscardableMemoryPool> pool(SkDiscardableMemoryPool::Make(1000));
for (int useDiscardable = 0; useDiscardable <= 1; ++useDiscardable) {
const size_t size = 100;