Lines Matching refs:picture
26 sk_sp<SkPicture> picture = makePicture();
27 REPORTER_ASSERT(reporter, picture->unique());
33 paint.setShader(picture->makeShader(SkTileMode::kRepeat, SkTileMode::kRepeat,
38 REPORTER_ASSERT(reporter, !picture->unique());
41 // Draw another picture shader to have a chance to purge.
51 REPORTER_ASSERT(reporter, picture->unique());
55 * Check caching of picture-shaders
58 * - after deleting the picture, the cache entry is purged
61 auto picture = []() {
66 REPORTER_ASSERT(reporter, picture->unique());
72 SkPicturePriv::MakeSharedID(picture->uniqueID()),
85 // Draw with a view variants of picture-shaders that all use the same picture.
92 paint.setShader(picture->makeShader(m, m, SkFilterMode::kNearest));
96 // Don't expect any additional refs on the picture
97 REPORTER_ASSERT(reporter, picture->unique());
104 // Now delete the picture, and check the we purge the cache entry
106 picture.reset();