Lines Matching defs:image
31 #include "src/image/SkImage_Base.h"
98 #define DEBUGCANVAS_ATTRIBUTE_IMAGE "image"
635 // flattens an image to a Json stream, also called from shader flatten
636 bool DrawCommand::flatten(const SkImage& image,
639 // For MSKP files, there is no need to encode the image,
643 writer.appendU64(urlDataManager.lookupImage(&image));
648 size_t rowBytes = 4 * image.width();
649 SkAutoMalloc buffer(rowBytes * image.height());
651 SkImageInfo::Make(image.dimensions(), kN32_SkColorType, kPremul_SkAlphaType);
652 // "cheat" for this debug tool and use image's context
655 dContext = GrAsDirectContext(as_IB(&image)->context());
657 if (!image.readPixels(dContext, dstInfo, buffer.get(), rowBytes, 0, 0)) {
670 SkDebugf("DrawCommand::flatten SkImage: could not encode image as PNG\n");
680 SkString url = encode_data(encoded->data(), encoded->size(), "image/png", urlDataManager);
710 sk_sp<SkImage> image(bitmap.asImage());
714 bool success = flatten(*image, writer, urlDataManager);
1169 DrawImageCommand::DrawImageCommand(const SkImage* image,
1175 , fImage(SkRef(image))
1230 DrawImageLatticeCommand::DrawImageLatticeCommand(const SkImage* image,
1236 , fImage(SkRef(image))
1276 DrawImageRectCommand::DrawImageRectCommand(const SkImage* image,
1283 , fImage(SkRef(image))
1363 // Don't append an image attribute here, the image can be rendered in as many different ways
1952 DrawAtlasCommand::DrawAtlasCommand(const SkImage* image,
1962 , fImage(SkRef(image))