Lines Matching refs:mipmap
50 const SkMipMap* mipmap = SkMipMapCache::FindAndRef(desc, cache); in test_mipmapcache() local
51 REPORTER_ASSERT(reporter, nullptr == mipmap); in test_mipmapcache()
53 mipmap = SkMipMapCache::AddAndRef(as_IB(img.get()), cache); in test_mipmapcache()
54 REPORTER_ASSERT(reporter, mipmap); in test_mipmapcache()
59 REPORTER_ASSERT(reporter, mm == mipmap); in test_mipmapcache()
63 check_data(reporter, mipmap, 2, kInCache, kLocked); in test_mipmapcache()
65 mipmap->unref(); in test_mipmapcache()
68 check_data(reporter, mipmap, 1, kInCache, kNotLocked); in test_mipmapcache()
71 mipmap = SkMipMapCache::FindAndRef(desc, cache); in test_mipmapcache()
72 check_data(reporter, mipmap, 2, kInCache, kLocked); in test_mipmapcache()
75 check_data(reporter, mipmap, 1, kNotInCache, kLocked); in test_mipmapcache()
77 mipmap->unref(); in test_mipmapcache()
95 const SkMipMap* mipmap = SkMipMapCache::FindAndRef(desc[i], cache); in test_mipmap_notify() local
97 REPORTER_ASSERT(reporter, mipmap); in test_mipmap_notify()
98 SkSafeUnref(mipmap); in test_mipmap_notify()
101 mipmap = SkMipMapCache::FindAndRef(desc[i], cache); in test_mipmap_notify()
102 REPORTER_ASSERT(reporter, mipmap); in test_mipmap_notify()
103 SkSafeUnref(mipmap); in test_mipmap_notify()
106 mipmap = SkMipMapCache::FindAndRef(desc[i], cache); in test_mipmap_notify()
107 REPORTER_ASSERT(reporter, !mipmap); in test_mipmap_notify()