Lines Matching refs:mask
40 SkMask mask; in DEF_TEST() local
42 SkCachedData* data = SkMaskCache::FindAndRef(sigma, style, quality, rrect, &mask, &cache); in DEF_TEST()
48 mask.fBounds.setXYWH(0, 0, 100, 100); in DEF_TEST()
49 mask.fRowBytes = 100; in DEF_TEST()
50 mask.fFormat = SkMask::kBW_Format; in DEF_TEST()
51 SkMaskCache::Add(sigma, style, quality, rrect, mask, data, &cache); in DEF_TEST()
57 sk_bzero(&mask, sizeof(mask)); in DEF_TEST()
58 data = SkMaskCache::FindAndRef(sigma, style, quality, rrect, &mask, &cache); in DEF_TEST()
61 REPORTER_ASSERT(reporter, mask.fBounds.top() == 0 && mask.fBounds.bottom() == 100); in DEF_TEST()
62 REPORTER_ASSERT(reporter, data->data() == (const void*)mask.fImage); in DEF_TEST()
78 SkMask mask; in DEF_TEST() local
80 SkCachedData* data = SkMaskCache::FindAndRef(sigma, style, quality, rects, 1, &mask, &cache); in DEF_TEST()
86 mask.fBounds.setXYWH(0, 0, 100, 100); in DEF_TEST()
87 mask.fRowBytes = 100; in DEF_TEST()
88 mask.fFormat = SkMask::kBW_Format; in DEF_TEST()
89 SkMaskCache::Add(sigma, style, quality, rects, 1, mask, data, &cache); in DEF_TEST()
95 sk_bzero(&mask, sizeof(mask)); in DEF_TEST()
96 data = SkMaskCache::FindAndRef(sigma, style, quality, rects, 1, &mask, &cache); in DEF_TEST()
99 REPORTER_ASSERT(reporter, mask.fBounds.top() == 0 && mask.fBounds.bottom() == 100); in DEF_TEST()
100 REPORTER_ASSERT(reporter, data->data() == (const void*)mask.fImage); in DEF_TEST()