Lines Matching defs:pixmap
44 bool SkWebpEncoder::Encode(SkWStream* stream, const SkPixmap& pixmap, const Options& opts) {
45 if (!SkPixmapIsValid(pixmap)) {
49 if (SkColorTypeIsAlphaOnly(pixmap.colorType())) {
55 if (nullptr == pixmap.addr()) {
67 pic.width = pixmap.width();
68 pic.height = pixmap.height();
90 sk_sp<SkData> icc = icc_from_color_space(pixmap.info());
95 const SkColorType ct = pixmap.colorType();
96 const bool premul = pixmap.alphaType() == kPremul_SkAlphaType;
100 const SkPixmap* src = &pixmap;
108 auto info = pixmap.info().makeColorType(kRGBA_8888_SkColorType)
111 || !pixmap.readPixels(tmpBm.info(), tmpBm.getPixels(), tmpBm.rowBytes())) {
114 src = &tmpBm.pixmap();