Lines Matching refs:srcInfo
141 const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRB,
143 if (srcInfo.dimensions() != dstInfo.dimensions()) {
147 const int width = srcInfo.width();
148 const int height = srcInfo.height();
151 if (4 == srcInfo.bytesPerPixel() && 4 == dstInfo.bytesPerPixel()) {
159 srcPI.fColorType = srcInfo.colorType();
160 srcPI.fAlphaType = srcInfo.alphaType();
169 if (srcInfo.colorType() == dstInfo.colorType()) {
170 switch (srcInfo.colorType()) {
176 if (srcInfo.alphaType() != dstInfo.alphaType()) {
183 rect_memcpy(dstPixels, dstRB, srcPixels, srcRB, width * srcInfo.bytesPerPixel(), height);
194 (kN32_SkColorType == srcInfo.colorType() || kIndex_8_SkColorType == srcInfo.colorType())) {
195 if (srcInfo.alphaType() == kUnpremul_SkAlphaType) {
201 if (kIndex_8_SkColorType == srcInfo.colorType()) {
243 if (!bm.installPixels(srcInfo, const_cast<void*>(srcPixels), srcRB, ctable, NULL, NULL)) {