Lines Matching refs:dm
22 SkDiscardableMemory* dm, in test_dm() argument
24 REPORTER_ASSERT(reporter, dm); in test_dm()
25 if (!dm) { in test_dm()
28 void* ptr = dm->data(); in test_dm()
34 dm->unlock(); in test_dm()
35 bool relockSuccess = dm->lock(); in test_dm()
42 ptr = dm->data(); in test_dm()
48 dm->unlock(); in test_dm()
52 std::unique_ptr<SkDiscardableMemory> dm(SkDiscardableMemory::Create(kTestStringLength)); in DEF_TEST() local
55 test_dm(reporter, dm.get(), false); in DEF_TEST()
61 std::unique_ptr<SkDiscardableMemory> dm(pool->create(kTestStringLength)); in DEF_TEST() local
62 test_dm(reporter, dm.get(), true); in DEF_TEST()