24 src.allocN32Pixels(10, 10);
28 dst.allocN32Pixels(10, 10);
91 m.setTranslateX(10.0f);
92 m.setTranslateY(10.0f);
120 SkPoint3::Make(1.0f, 1.0f, 1.0f), 0xFF0000FF, 2.0f, 0.5f,
nullptr);
122 paint.setImageFilter(filter);
static void test_drawBitmap(skiatest::Reporter *reporter)
static void test_layers(skiatest::Reporter *reporter)
static void test_quick_reject(skiatest::Reporter *reporter)
DEF_TEST(QuickReject, reporter)
constexpr SkColor SK_ColorTRANSPARENT
constexpr SkColor SK_ColorWHITE
#define REPORTER_ASSERT(r, cond,...)
int saveLayer(const SkRect *bounds, const SkPaint *paint)
void setMatrix(const SkM44 &matrix)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
bool quickReject(const SkRect &rect) const
static sk_sp< SkImageFilter > DistantLitDiffuse(const SkPoint3 &direction, SkColor lightColor, SkScalar surfaceScale, SkScalar kd, sk_sp< SkImageFilter > input, const CropRect &cropRect={})
static SkMatrix Scale(SkScalar sx, SkScalar sy)
unsigned useCenter Optional< SkMatrix > matrix
Optional< SkRect > bounds
static SkPoint3 Make(SkScalar x, SkScalar y, SkScalar z)
void offset(float dx, float dy)
static constexpr SkRect MakeWH(float w, float h)
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)