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