Lines Matching defs:image
213 // PDF does not support image filters, so render them on CPU.
630 void SkPDFDevice::drawImageRect(const SkImage* image,
636 SkASSERT(image);
637 this->internalDrawImageRect(SkKeyedImage(sk_ref_sp(const_cast<SkImage*>(image))),
1423 static sk_sp<SkImage> color_filter(const SkImage* image,
1426 SkSurface::MakeRaster(SkImageInfo::MakeN32Premul(image->dimensions()));
1432 canvas->drawImage(image, 0, 0, SkSamplingOptions(), &paint);
1462 // First, figure out the src->dst transform and subset the image if needed.
1463 SkIRect bounds = imageSubset.image()->bounds();
1473 if (bounds != imageSubset.image()->bounds()) {
1481 // If the image is opaque and the paint's alpha is too, replace
1485 imageSubset.image()->isOpaque() &&
1493 if (imageSubset.image()->isAlphaOnly() && paint->getColorFilter()) {
1494 // must blend alpha image and shader before applying colorfilter.
1496 SkSurface::MakeRaster(SkImageInfo::MakeN32Premul(imageSubset.image()->dimensions()));
1500 // system is the image's coordiantes.
1504 canvas->drawImage(imageSubset.image().get(), 0, 0, sampling, &tmpPaint);
1509 SkASSERT(!imageSubset.image()->isAlphaOnly());
1512 if (imageSubset.image()->isAlphaOnly()) {
1516 sk_sp<SkImage> mask = alpha_image_to_greyscale_image(imageSubset.image().get());
1525 // This clip prevents the mask image shader from covering
1559 paint.writable()->setShader(imageSubset.image()->makeShader(SkSamplingOptions(),
1582 SkRect imageBounds = SkRect::Make(imageSubset.image()->bounds());
1599 // alpha to the image while still giving good behavior at the edge of
1600 // the image. Avoiding alpha will reduce the pdf size and generation
1622 canvas->drawImage(imageSubset.image(), 0, 0);
1641 // Scale the image up from 1x1 to WxH.
1642 SkIRect subset = imageSubset.image()->bounds();
1659 sk_sp<SkImage> img = color_filter(imageSubset.image().get(), colorFilter);
1673 pdfimage = SkPDFSerializeImage(imageSubset.image().get(), fDocument,
1691 // from createDevice (an image filter would go through drawSpecial, but createDevice uses
1742 sk_sp<SkSpecialImage> SkPDFDevice::makeSpecial(const SkImage* image) {
1743 return SkSpecialImage::MakeFromImage(nullptr, image->bounds(), image->makeNonTextureImage(),