82 {
84
89 }
90
93 paint.setAntiAlias(
true);
94 }
95
97
98 SkPoint pts[3] = {{0, 0}, {1.5f, 1}};
102 }
103
104#ifdef SK_DEBUG
107#endif
108
110
112 for (int et = 0; et <= lastEdgeType; ++et) {
114 for (int curRRect = 0; curRRect < kNumRRects; ++curRRect) {
115 bool drew = true;
116#ifdef SK_DEBUG
117 if (curRRect != kNumRRects - 1) {
121 }
122#endif
125
127 if (curRRect == kNumRRects - 1) {
128 canvas->
clipRect({0, 0, kTileX - 2, kTileY - 2});
131 }
134
136 const auto& caps = *rContext->priv().caps()->shaderCaps();
138 edgeType,
rrect, caps);
139 if (success) {
144
149 }
150
153 } else {
154 drew = false;
155 }
161 } else {
163 }
164
166 if (drew) {
168 if (
x > kImageWidth) {
171 }
172 }
173 }
176 }
177 }
179 }
constexpr SkColor SK_ColorYELLOW
constexpr SkColor SK_ColorBLACK
void setXPFactory(const GrXPFactory *xpFactory)
void setColor4f(const SkPMColor4f &color)
void setCoverageFragmentProcessor(std::unique_ptr< GrFragmentProcessor > fp)
static const GrXPFactory * Get(SkBlendMode blendMode)
void drawRect(const SkRect &rect, const SkPaint &paint)
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
void translate(SkScalar dx, SkScalar dy)
SkMatrix getLocalToDeviceAs3x3() const
virtual GrRecordingContext * recordingContext() const
void drawRRect(const SkRRect &rrect, const SkPaint &paint)
void setMatrix(const SkM44 &matrix)
void clipRRect(const SkRRect &rrect, SkClipOp op, bool doAntiAlias)
static sk_sp< SkShader > MakeLinear(const SkPoint pts[2], const SkColor colors[], const SkScalar pos[], int count, SkTileMode mode, uint32_t flags=0, const SkMatrix *localMatrix=nullptr)
static SkMatrix Scale(SkScalar sx, SkScalar sy)
static const SkMatrix & I()
const SkRect & rect() const
bool transform(const SkMatrix &matrix, SkRRect *dst) const
const SkRect & getBounds() const
static GrOp::Owner MakeNonAARect(GrRecordingContext *, GrPaint &&, const SkMatrix &view, const SkRect &, const GrUserStencilSettings *=nullptr)
static constexpr char kErrorMsg_DrawSkippedGpuOnly[]
GrFPResult Make(std::unique_ptr< GrFragmentProcessor >, GrClipEdgeType, const SkRRect &, const GrShaderCaps &)
Optional< SkRect > bounds
PODArray< SkColor > colors
SurfaceDrawContext * TopDeviceSurfaceDrawContext(const SkCanvas *canvas)
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
bool contains(SkScalar x, SkScalar y) const
void offset(float dx, float dy)
constexpr float height() const
constexpr float width() const
static constexpr SkRect MakeWH(float w, float h)