Lines Matching refs:srcInfo

154                           const SkImageInfo& srcInfo) {  in copy_32_to_g8()  argument
158 const int w = srcInfo.width(); in copy_32_to_g8()
159 const int h = srcInfo.height(); in copy_32_to_g8()
160 const bool isBGRA = (kBGRA_8888_SkColorType == srcInfo.colorType()); in copy_32_to_g8()
182 const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRB, in CopyPixels() argument
184 if (srcInfo.dimensions() != dstInfo.dimensions()) { in CopyPixels()
188 const int width = srcInfo.width(); in CopyPixels()
189 const int height = srcInfo.height(); in CopyPixels()
192 if (4 == srcInfo.bytesPerPixel() && 4 == dstInfo.bytesPerPixel()) { in CopyPixels()
200 srcPI.fColorType = srcInfo.colorType(); in CopyPixels()
201 srcPI.fAlphaType = srcInfo.alphaType(); in CopyPixels()
210 if (srcInfo.colorType() == dstInfo.colorType()) { in CopyPixels()
211 switch (srcInfo.colorType()) { in CopyPixels()
218 if (srcInfo.alphaType() != dstInfo.alphaType()) { in CopyPixels()
225 rect_memcpy(dstPixels, dstRB, srcPixels, srcRB, width * srcInfo.bytesPerPixel(), height); in CopyPixels()
234 if (kGray_8_SkColorType == srcInfo.colorType() && 4 == dstInfo.bytesPerPixel()) { in CopyPixels()
238 if (kGray_8_SkColorType == dstInfo.colorType() && 4 == srcInfo.bytesPerPixel()) { in CopyPixels()
239 copy_32_to_g8(dstPixels, dstRB, srcPixels, srcRB, srcInfo); in CopyPixels()
245 (kN32_SkColorType == srcInfo.colorType() || kIndex_8_SkColorType == srcInfo.colorType())) { in CopyPixels()
246 if (srcInfo.alphaType() == kUnpremul_SkAlphaType) { in CopyPixels()
252 if (kIndex_8_SkColorType == srcInfo.colorType()) { in CopyPixels()
290 if (!bm.installPixels(srcInfo, const_cast<void*>(srcPixels), srcRB, ctable, NULL, NULL)) { in CopyPixels()