Lines Matching full:picture
33 sk_sp<SkPicture> picture = makePicture(); in DEF_TEST() local
34 REPORTER_ASSERT(reporter, picture->unique()); in DEF_TEST()
40 paint.setShader(picture->makeShader(SkTileMode::kRepeat, SkTileMode::kRepeat, in DEF_TEST()
45 REPORTER_ASSERT(reporter, !picture->unique()); in DEF_TEST()
48 // Draw another picture shader to have a chance to purge. in DEF_TEST()
58 REPORTER_ASSERT(reporter, picture->unique()); in DEF_TEST()
62 * Check caching of picture-shaders
65 * - after deleting the picture, the cache entry is purged
68 auto picture = []() { in DEF_TEST() local
73 REPORTER_ASSERT(reporter, picture->unique()); in DEF_TEST()
79 SkPicturePriv::MakeSharedID(picture->uniqueID()), in DEF_TEST()
92 // Draw with a view variants of picture-shaders that all use the same picture. in DEF_TEST()
99 paint.setShader(picture->makeShader(m, m, SkFilterMode::kNearest)); in DEF_TEST()
103 // Don't expect any additional refs on the picture in DEF_TEST()
104 REPORTER_ASSERT(reporter, picture->unique()); in DEF_TEST()
111 // Now delete the picture, and check the we purge the cache entry in DEF_TEST()
113 picture.reset(); in DEF_TEST()