Lines Matching refs:pixmap
86 SkPixmap pixmap;
87 if (!image->peekPixels(&pixmap)) {
110 switch (pixmap.colorType()) {
115 pixmap.colorType());
119 if (pixmap.alphaType() == kUnpremul_SkAlphaType) {
125 if (pixmap.rowBytes() != (size_t)pixmap.width() * pixmap.info().bytesPerPixel()) {
126 SkDebugf("not a tight pixmap, need a loop here\n");
130 if (!skcms_Transform(pixmap.addr(), fmt,alpha, &src_profile,
131 pixmap.writable_addr(), fmt,alpha, &dst_profile,
132 pixmap.width() * pixmap.height())) {
136 pixmap.setColorSpace(dst_cs);
138 write_png("transformed-skcms.png", SkImage::MakeRasterCopy(pixmap));
142 sk_sp<SkSurface> surface = SkSurface::MakeRaster(pixmap.info().makeColorSpace(dst_cs));
148 surface->writePixels(pixmap, 0,0);
154 sk_sp<SkSurface> surface = SkSurface::MakeRaster(pixmap.info().makeColorSpace(dst_cs));