Lines Matching refs:mipmap
51 const SkMipMap* mipmap = SkMipMapCache::FindAndRef(desc, cache); in test_mipmapcache() local
52 REPORTER_ASSERT(reporter, nullptr == mipmap); in test_mipmapcache()
54 mipmap = SkMipMapCache::AddAndRef(provider, cache); in test_mipmapcache()
55 REPORTER_ASSERT(reporter, mipmap); in test_mipmapcache()
60 REPORTER_ASSERT(reporter, mm == mipmap); in test_mipmapcache()
64 check_data(reporter, mipmap, 2, kInCache, kLocked); in test_mipmapcache()
66 mipmap->unref(); in test_mipmapcache()
69 check_data(reporter, mipmap, 1, kInCache, kNotLocked); in test_mipmapcache()
72 mipmap = SkMipMapCache::FindAndRef(desc, cache); in test_mipmapcache()
73 check_data(reporter, mipmap, 2, kInCache, kLocked); in test_mipmapcache()
76 check_data(reporter, mipmap, 1, kNotInCache, kLocked); in test_mipmapcache()
78 mipmap->unref(); in test_mipmapcache()
97 const SkMipMap* mipmap = SkMipMapCache::FindAndRef(desc[i], cache); in test_mipmap_notify() local
99 REPORTER_ASSERT(reporter, mipmap); in test_mipmap_notify()
100 SkSafeUnref(mipmap); in test_mipmap_notify()
103 mipmap = SkMipMapCache::FindAndRef(desc[i], cache); in test_mipmap_notify()
104 REPORTER_ASSERT(reporter, mipmap); in test_mipmap_notify()
105 SkSafeUnref(mipmap); in test_mipmap_notify()
108 mipmap = SkMipMapCache::FindAndRef(desc[i], cache); in test_mipmap_notify()
109 REPORTER_ASSERT(reporter, !mipmap); in test_mipmap_notify()