Home | History | Annotate | Download | only in tests

Lines Matching refs:SkXfermode

11 #include "SkXfermode.h"
17 #define ILLEGAL_MODE ((SkXfermode::Mode)-1)
20 for (int mode = 0; mode <= SkXfermode::kLastMode; mode++) {
21 SkXfermode* xfer = SkXfermode::Create((SkXfermode::Mode) mode);
23 SkXfermode::Mode reportedMode = ILLEGAL_MODE;
27 REPORTER_ASSERT(reporter, SkXfermode::AsMode(xfer, &reportedMode));
32 reportedMode = (SkXfermode::Mode) -1;
37 REPORTER_ASSERT(reporter, SkXfermode::kSrcOver_Mode == mode);
41 SkXfermode* bogusXfer = new SkProcXfermode(bogusXfermodeProc);
42 SkXfermode::Mode reportedMode = ILLEGAL_MODE;
45 REPORTER_ASSERT(reporter, !SkXfermode::AsMode(bogusXfer, &reportedMode));
51 REPORTER_ASSERT(reporter, SkXfermode::IsMode(NULL,
52 SkXfermode::kSrcOver_Mode));
54 for (int i = 0; i <= SkXfermode::kLastMode; ++i) {
55 SkXfermode::Mode mode = (SkXfermode::Mode)i;
57 SkXfermode* xfer = SkXfermode::Create(mode);
58 REPORTER_ASSERT(reporter, SkXfermode::IsMode(xfer, mode));
61 if (SkXfermode::kSrcOver_Mode != mode) {
62 REPORTER_ASSERT(reporter, !SkXfermode::IsMode(NULL, mode));