10#if !defined(SK_TEST_CANVAS_STATE_CROSS_LIBRARY)
27 float right,
float bottom, int32_t spacer) {
39 float left,
float top,
float right,
float bottom, int32_t spacer) {
49 int32_t
right, int32_t bottom, int32_t clipOp,
const SkRegion& localRegion) {
62 int32_t
left, int32_t top, int32_t
right, int32_t bottom, int32_t clipOp,
63 int32_t regionRects, int32_t* rectCoords) {
70 for (int32_t
i = 0;
i < regionRects; ++
i) {
71 localRegion.
op({rectCoords[0], rectCoords[1], rectCoords[2], rectCoords[3]},
bool complex_layers_draw_from_canvas_state(SkCanvasState *state, float left, float top, float right, float bottom, int32_t spacer)
void complex_layers_draw(SkCanvas *canvas, float left, float top, float right, float bottom, int32_t spacer)
bool complex_clips_draw_from_canvas_state(SkCanvasState *state, int32_t left, int32_t top, int32_t right, int32_t bottom, int32_t clipOp, int32_t regionRects, int32_t *rectCoords)
void complex_clips_draw(SkCanvas *canvas, int32_t left, int32_t top, int32_t right, int32_t bottom, int32_t clipOp, const SkRegion &localRegion)
constexpr SkColor SK_ColorBLUE
static bool left(const SkPoint &p0, const SkPoint &p1)
static bool right(const SkPoint &p0, const SkPoint &p1)
static std::unique_ptr< SkCanvas > MakeFromCanvasState(const SkCanvasState *state)
void drawRect(const SkRect &rect, const SkPaint &paint)
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
void translate(SkScalar dx, SkScalar dy)
void drawColor(SkColor color, SkBlendMode mode=SkBlendMode::kSrcOver)
void clipRegion(const SkRegion &deviceRgn, SkClipOp op=SkClipOp::kIntersect)
void setStyle(Style style)
void setColor(SkColor color)
@ kFill_Style
set to fill geometry
@ kUnion_Op
target unioned with operand
bool op(const SkIRect &rect, Op op)
clipRect(r.rect, r.opAA.op(), r.opAA.aa())) template<> void Draw
sk_sp< SkBlender > blender SkRect rect
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)