Lines Matching refs:mode
15 for (int mode = 0; mode <= SkXfermode::kLastMode; mode++) { in test_asMode() local
16 SkXfermode* xfer = SkXfermode::Create((SkXfermode::Mode) mode); in test_asMode()
19 REPORTER_ASSERT(reporter, reportedMode != mode); in test_asMode()
23 REPORTER_ASSERT(reporter, reportedMode == mode); in test_asMode()
29 REPORTER_ASSERT(reporter, reportedMode == mode); in test_asMode()
32 REPORTER_ASSERT(reporter, SkXfermode::kSrcOver_Mode == mode); in test_asMode()
42 SkXfermode::Mode mode = (SkXfermode::Mode)i; in test_IsMode() local
44 SkXfermode* xfer = SkXfermode::Create(mode); in test_IsMode()
45 REPORTER_ASSERT(reporter, SkXfermode::IsMode(xfer, mode)); in test_IsMode()
48 if (SkXfermode::kSrcOver_Mode != mode) { in test_IsMode()
49 REPORTER_ASSERT(reporter, !SkXfermode::IsMode(NULL, mode)); in test_IsMode()