Lines Matching refs:SkXfermode
9 #include "SkXfermode.h"
12 #define ILLEGAL_MODE ((SkXfermode::Mode)-1)
15 for (int mode = 0; mode <= SkXfermode::kLastMode; mode++) {
16 SkXfermode* xfer = SkXfermode::Create((SkXfermode::Mode) mode);
18 SkXfermode::Mode reportedMode = ILLEGAL_MODE;
22 REPORTER_ASSERT(reporter, SkXfermode::AsMode(xfer, &reportedMode));
27 reportedMode = (SkXfermode::Mode) -1;
32 REPORTER_ASSERT(reporter, SkXfermode::kSrcOver_Mode == mode);
38 REPORTER_ASSERT(reporter, SkXfermode::IsMode(NULL,
39 SkXfermode::kSrcOver_Mode));
41 for (int i = 0; i <= SkXfermode::kLastMode; ++i) {
42 SkXfermode::Mode mode = (SkXfermode::Mode)i;
44 SkXfermode* xfer = SkXfermode::Create(mode);
45 REPORTER_ASSERT(reporter, SkXfermode::IsMode(xfer, mode));
48 if (SkXfermode::kSrcOver_Mode != mode) {
49 REPORTER_ASSERT(reporter, !SkXfermode::IsMode(NULL, mode));