Lines Matching defs:size
807 const SkColor badColor = 0xFF3388BB; // should never be seen, fills out fixed-size array
904 static_assert(SK_ARRAY_COUNT(colors1) == SK_ARRAY_COUNT(pos), "color/pos size mismatch");
905 static_assert(SK_ARRAY_COUNT(colors2) == SK_ARRAY_COUNT(pos), "color/pos size mismatch");
937 static_assert(SK_ARRAY_COUNT(colors) == SK_ARRAY_COUNT(pos), "color/pos size mismatch");
957 static_assert(SK_ARRAY_COUNT(colors) == SK_ARRAY_COUNT(pos), "color/pos size mismatch");
972 "color/pos size mismatch");
983 static constexpr SkScalar size = 160;
986 static_assert(SK_ARRAY_COUNT(colors) == SK_ARRAY_COUNT(pos), "size mismatch");
1002 const SkRect r = SkRect::MakeWH(size, size);
1009 p.setShader(SkGradientShader::MakeSweep(size / 2, size / 2, colors, pos,
1014 canvas->translate(size * 1.1f, 0);
1017 canvas->translate(0, size * 1.1f);
1051 static constexpr SkScalar size = 200;
1052 static const SkPoint pts[] = { { size / 3, size / 3 }, { size * 2 / 3, size * 2 / 3} };
1061 canvas->drawRect(SkRect::MakeWH(size, size), p);
1062 canvas->translate(size * 1.1f, 0);
1065 canvas->translate(0, size * 1.1f);