Lines Matching refs:srcPremul

35                           const SkBitmap& srcOpaque, const SkBitmap& srcPremul,  in test_isOpaque()  argument
39 if (canHaveAlpha(srcPremul.colorType()) && canHaveAlpha(dstColorType)) { in test_isOpaque()
40 REPORTER_ASSERT(reporter, srcPremul.copyTo(&dst, dstColorType)); in test_isOpaque()
42 if (srcPremul.isOpaque() != dst.isOpaque()) { in test_isOpaque()
43 report_opaqueness(reporter, srcPremul, dst); in test_isOpaque()
195 static void setup_src_bitmaps(SkBitmap* srcOpaque, SkBitmap* srcPremul, in setup_src_bitmaps() argument
204 srcPremul->allocPixels(SkImageInfo::Make(W, H, ct, kPremul_SkAlphaType), in setup_src_bitmaps()
208 init_src(*srcPremul); in setup_src_bitmaps()
213 SkBitmap srcOpaque, srcPremul; in DEF_TEST() local
214 setup_src_bitmaps(&srcOpaque, &srcPremul, gPairs[i].fColorType); in DEF_TEST()
258 bitmap = srcPremul; in DEF_TEST()
273 SkBitmap srcOpaque, srcPremul; in DEF_TEST() local
274 setup_src_bitmaps(&srcOpaque, &srcPremul, gPairs[i].fColorType); in DEF_TEST()
279 bool success = srcPremul.copyTo(&dst, gPairs[j].fColorType); in DEF_TEST()
287 bool canSucceed = srcPremul.canCopyTo(gPairs[j].fColorType); in DEF_TEST()
295 REPORTER_ASSERT(reporter, srcPremul.width() == dst.width()); in DEF_TEST()
296 REPORTER_ASSERT(reporter, srcPremul.height() == dst.height()); in DEF_TEST()
298 test_isOpaque(reporter, srcOpaque, srcPremul, dst.colorType()); in DEF_TEST()
299 if (srcPremul.colorType() == dst.colorType()) { in DEF_TEST()
300 SkAutoLockPixels srcLock(srcPremul); in DEF_TEST()
302 REPORTER_ASSERT(reporter, srcPremul.readyToDraw()); in DEF_TEST()
304 const char* srcP = (const char*)srcPremul.getAddr(0, 0); in DEF_TEST()
308 srcPremul.getSize())); in DEF_TEST()
309 REPORTER_ASSERT(reporter, srcPremul.getGenerationID() == dst.getGenerationID()); in DEF_TEST()
311 REPORTER_ASSERT(reporter, srcPremul.getGenerationID() != dst.getGenerationID()); in DEF_TEST()