Lines Matching full:picture
32 sk_sp<SkPicture> picture = makePicture(); in DEF_TEST() local
33 REPORTER_ASSERT(reporter, picture->unique()); in DEF_TEST()
39 paint.setShader(picture->makeShader(SkTileMode::kRepeat, SkTileMode::kRepeat, in DEF_TEST()
44 REPORTER_ASSERT(reporter, !picture->unique()); in DEF_TEST()
47 // Draw another picture shader to have a chance to purge. in DEF_TEST()
57 REPORTER_ASSERT(reporter, picture->unique()); in DEF_TEST()
61 * Check caching of picture-shaders
64 * - after deleting the picture, the cache entry is purged
67 auto picture = []() { in DEF_TEST() local
72 REPORTER_ASSERT(reporter, picture->unique()); in DEF_TEST()
78 SkPicturePriv::MakeSharedID(picture->uniqueID()), in DEF_TEST()
91 // Draw with a view variants of picture-shaders that all use the same picture. in DEF_TEST()
98 paint.setShader(picture->makeShader(m, m, SkFilterMode::kNearest)); in DEF_TEST()
102 // Don't expect any additional refs on the picture in DEF_TEST()
103 REPORTER_ASSERT(reporter, picture->unique()); in DEF_TEST()
110 // Now delete the picture, and check the we purge the cache entry in DEF_TEST()
112 picture.reset(); in DEF_TEST()