Lines Matching refs:srcInfo
172 const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRowBytes) {
173 if (srcInfo.dimensions() != dstInfo.dimensions()) {
176 if (4 == srcInfo.bytesPerPixel() && 4 == dstInfo.bytesPerPixel()) {
184 srcPI.fColorType = srcInfo.colorType();
185 srcPI.fAlphaType = srcInfo.alphaType();
189 return srcPI.convertPixelsTo(&dstPI, srcInfo.width(), srcInfo.height());
191 if (srcInfo.colorType() == dstInfo.colorType()) {
192 switch (srcInfo.colorType()) {
197 if (srcInfo.alphaType() != dstInfo.alphaType()) {
205 srcInfo.width() * srcInfo.bytesPerPixel(), srcInfo.height());
211 bool SkBitmapDevice::onWritePixels(const SkImageInfo& srcInfo, const void* srcPixels,
219 dstInfo.fWidth = srcInfo.width();
220 dstInfo.fHeight = srcInfo.height();
225 if (copy_pixels(dstInfo, dstPixels, dstRowBytes, srcInfo, srcPixels, srcRowBytes)) {
239 SkImageInfo srcInfo = fBitmap.info();
245 if (4 != srcInfo.bytesPerPixel()) {
249 srcInfo.fWidth = dstInfo.width();
250 srcInfo.fHeight = dstInfo.height();
255 return copy_pixels(dstInfo, dstPixels, dstRowBytes, srcInfo, srcPixels, srcRowBytes);