Lines Matching defs:image
19 #include "src/image/SkImage_Base.h"
53 // This GM tests that the YUVA image code path in the GPU backend handles odd sized images with
62 auto image = make_image(rContext);
63 if (!image) {
66 // We draw the image offscreen and then blow it up using nearest filtering by kScale.
70 surface = origSurface->makeSurface(image->width(), image->height());
74 ct = image->colorType();
80 surface->getCanvas()->drawImage(image, 0, 0);
95 auto image = GetResourceAsImage("images/mandrill_256.png");
96 if (!image) {
99 // Make sure the image is odd dimensioned.
100 int w = image->width() & 0b1 ? image->width() : image->width() - 1;
101 int h = image->height() & 0b1 ? image->height() : image->height() - 1;
102 image = image->makeSubset(SkIRect::MakeWH(w, h));
104 auto [planes, yuvaInfo] = sk_gpu_test::MakeYUVAPlanesAsA8(image.get(),
113 image = SkImage::MakeFromYUVAPixmaps(canvas->recordingContext(),
118 if (!image) {
119 *errMsg = "Could not make YUVA image";
133 auto shader = image->makeShader(SkTileMode::kRepeat,