Lines Matching refs:mask
39 SkMask mask; in DEF_TEST() local
41 SkCachedData* data = SkMaskCache::FindAndRef(sigma, style, rrect, &mask, &cache); in DEF_TEST()
47 mask.fBounds.setXYWH(0, 0, 100, 100); in DEF_TEST()
48 mask.fRowBytes = 100; in DEF_TEST()
49 mask.fFormat = SkMask::kBW_Format; in DEF_TEST()
50 SkMaskCache::Add(sigma, style, rrect, mask, data, &cache); in DEF_TEST()
56 sk_bzero(&mask, sizeof(mask)); in DEF_TEST()
57 data = SkMaskCache::FindAndRef(sigma, style, rrect, &mask, &cache); in DEF_TEST()
60 REPORTER_ASSERT(reporter, mask.fBounds.top() == 0 && mask.fBounds.bottom() == 100); in DEF_TEST()
61 REPORTER_ASSERT(reporter, data->data() == (const void*)mask.fImage); in DEF_TEST()
76 SkMask mask; in DEF_TEST() local
78 SkCachedData* data = SkMaskCache::FindAndRef(sigma, style, rects, 1, &mask, &cache); in DEF_TEST()
84 mask.fBounds.setXYWH(0, 0, 100, 100); in DEF_TEST()
85 mask.fRowBytes = 100; in DEF_TEST()
86 mask.fFormat = SkMask::kBW_Format; in DEF_TEST()
87 SkMaskCache::Add(sigma, style, rects, 1, mask, data, &cache); in DEF_TEST()
93 sk_bzero(&mask, sizeof(mask)); in DEF_TEST()
94 data = SkMaskCache::FindAndRef(sigma, style, rects, 1, &mask, &cache); in DEF_TEST()
97 REPORTER_ASSERT(reporter, mask.fBounds.top() == 0 && mask.fBounds.bottom() == 100); in DEF_TEST()
98 REPORTER_ASSERT(reporter, data->data() == (const void*)mask.fImage); in DEF_TEST()