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