Lines Matching defs:image
41 // Draws the image to a surface, does a asyncRescaleAndReadPixels of the image, and then sticks
42 // the result in a raster image.
178 auto image = GetResourceAsImage(imageFile);
179 if (!image) {
180 errorMsg->printf("Could not load image file %s.", imageFile);
195 // Turn the image into a surface in order to call the read and rescale API
196 auto surfInfo = image->imageInfo().makeDimensions(image->dimensions());
203 *errorMsg = "Could not create surface for image.";
212 surface->getCanvas()->drawImage(image, 0, 0, SkSamplingOptions(), &paint);
216 image = image->makeTextureImage(dContext);
217 if (!image) {
218 *errorMsg = "Could not create image.";
226 return do_rescale_grid(canvas, image.get(), dContext, srcRect, newSize, doYUV420,
293 auto image = GetResourceAsImage("images/yellow_rose.webp");
294 if (!image) {
298 canvas->drawImage(image.get(), 0, 0);
331 *errorMsg = "Could not create surface for image.";