commit | 788c3c467a019f31e6e2c6d07a7b644bc157bb34 | [log] [tgz] |
---|---|---|
author | Hal Canary <halcanary@google.com> | Tue Apr 25 08:58:57 2017 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Fri May 05 15:10:13 2017 +0000 |
tree | 9eb51c34dd4f440507b81dbed4f5a96b0cd96e61 | |
parent | bc5d4d769098a4fb46685c0e59034dc8e12318a2 [diff] [blame] |
SkDiscardableMemoryPool: always have a mutex for testing Change-Id: I898058f1125f62832f2b2b661c661efb0f84da6d Reviewed-on: https://skia-review.googlesource.com/14274 Commit-Queue: Hal Canary <halcanary@google.com> Reviewed-by: Herb Derby <herb@google.com>
diff --git a/tests/DiscardableMemoryPoolTest.cpp b/tests/DiscardableMemoryPoolTest.cpp index b8fd6d7..c91e827 100644 --- a/tests/DiscardableMemoryPoolTest.cpp +++ b/tests/DiscardableMemoryPoolTest.cpp
@@ -9,8 +9,7 @@ #include "Test.h" DEF_TEST(DiscardableMemoryPool, reporter) { - sk_sp<SkDiscardableMemoryPool> pool( - SkDiscardableMemoryPool::Make(1, nullptr)); + sk_sp<SkDiscardableMemoryPool> pool(SkDiscardableMemoryPool::Make(1)); pool->setRAMBudget(3); REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed());