Lines Matching defs:dstColorType
127 static void draw_image(SkCanvas* canvas, SkImage* image, SkColorType dstColorType,
130 size_t rowBytes = image->width() * SkColorTypeBytesPerPixel(dstColorType);
132 dstColorSpace = fix_for_colortype(dstColorSpace.get(), dstColorType);
133 SkImageInfo dstInfo = SkImageInfo::Make(image->width(), image->height(), dstColorType,
142 if (!xform->apply(select_xform_format(dstColorType), data->writable_data(),
143 select_xform_format(dstColorType), data->data(),
155 SkColorSpace::MakeSRGB().get(), dstColorType);
202 for (SkColorType dstColorType : colorTypes) {
204 draw_image(canvas, image.get(), dstColorType, dstAlphaType,
262 for (SkColorType dstColorType : colorTypes) {
265 draw_image(canvas, image.get(), dstColorType, dstAlphaType, dstColorSpace,
328 for (SkColorType dstColorType : colorTypes) {
331 draw_image(canvas, image.get(), dstColorType, dstAlphaType,