35 int opaqueCounter0 = 0;
36 int opaqueCounter1 = 0;
37 int opaqueCounter2 = 0;
38 for (
i = 0;
i <= 255;
i++) {
42 opaqueCounter0 += (result0 == 0xFF);
43 opaqueCounter1 += (result1 == 0xFF);
44 opaqueCounter2 += (result2 == 0xFF);
48 opaqueCounter0, opaqueCounter1, opaqueCounter2);
56 for (
i = 0;
i <= 255;
i++) {
57 for (
unsigned dst = 0;
dst <= 255;
dst++) {
#define SkAlphaMul(value, alpha256)
static unsigned SkAlpha255To256(U8CPU alpha)
static U8CPU SkMulDiv255Round(U16CPU a, U16CPU b)
DEF_TEST(SrcOver, reporter)
static int test_srcover2(unsigned dst, unsigned alpha)
static int test_srcover0(unsigned dst, unsigned alpha)
static int test_srcover1(unsigned dst, unsigned alpha)
#define REPORTER_ASSERT(r, cond,...)
#define INFOF(REPORTER,...)
static float max(float r, float g, float b)