Lines Matching refs:SkXfermode
12 #define ILLEGAL_MODE ((SkXfermode::Mode)-1)
15 for (int mode = 0; mode <= SkXfermode::kLastMode; mode++) { in test_asMode()
16 SkXfermode* xfer = SkXfermode::Create((SkXfermode::Mode) mode); in test_asMode()
18 SkXfermode::Mode reportedMode = ILLEGAL_MODE; in test_asMode()
22 REPORTER_ASSERT(reporter, SkXfermode::AsMode(xfer, &reportedMode)); in test_asMode()
27 reportedMode = (SkXfermode::Mode) -1; in test_asMode()
32 REPORTER_ASSERT(reporter, SkXfermode::kSrcOver_Mode == mode); in test_asMode()
38 REPORTER_ASSERT(reporter, SkXfermode::IsMode(NULL, in test_IsMode()
39 SkXfermode::kSrcOver_Mode)); in test_IsMode()
41 for (int i = 0; i <= SkXfermode::kLastMode; ++i) { in test_IsMode()
42 SkXfermode::Mode mode = (SkXfermode::Mode)i; in test_IsMode()
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()