Lines Matching refs:mipmap
48 const SkMipMap* mipmap = SkMipMapCache::FindAndRef(SkBitmapCacheDesc::Make(src), colorMode, in test_mipmapcache() local
50 REPORTER_ASSERT(reporter, nullptr == mipmap); in test_mipmapcache()
52 mipmap = SkMipMapCache::AddAndRef(src, colorMode, cache); in test_mipmapcache()
53 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(SkBitmapCacheDesc::Make(src), colorMode, 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()
93 const SkMipMap* mipmap = SkMipMapCache::FindAndRef(desc, colorMode, cache); in test_mipmap_notify() local
97 REPORTER_ASSERT(reporter, mipmap); in test_mipmap_notify()
99 SkSafeUnref(mipmap); in test_mipmap_notify()
103 mipmap = SkMipMapCache::FindAndRef(desc, colorMode, cache); in test_mipmap_notify()
104 REPORTER_ASSERT(reporter, !mipmap); in test_mipmap_notify()