Lines Matching defs:image
153 sk_sp<SkImage> image(surf->makeImageSnapshot());
154 canvas->drawImage(image, 10, 10);
159 // Assert that the props were communicated transitively through the first image
163 canvas->drawImage(image2.get(), 10 + SkIntToScalar(image->width()) + 10, 10);
246 // its important that image survives longer than the next draw, so the surface will see
247 // an outstanding image, and have to decide if it should retain or discard those pixels
248 sk_sp<SkImage> image = surf->makeImageSnapshot();
259 // Like copy_on_write_retain but draws the snapped image back to the surface it was snapped from.
265 // its important that image survives longer than the next draw, so the surface will see
266 // an outstanding image, and have to decide if it should retain or discard those pixels
267 sk_sp<SkImage> image = surf->makeImageSnapshot();
273 surf->getCanvas()->drawImage(image, 0, 0);
284 sk_sp<SkImage> image = surf->makeImageSnapshot();
286 canvas->drawImage(std::move(image), 0, 0);
289 // Like simple_snap_image but the surface dies before the image.
295 sk_sp<SkImage> image = surf->makeImageSnapshot();
298 canvas->drawImage(std::move(image), 0, 0);
305 // its important that image survives longer than the next draw, so the surface will see
306 // an outstanding image, and have to decide if it should retain or discard those pixels
307 sk_sp<SkImage> image = surf->makeImageSnapshot();