8#ifndef skgpu_graphite_DrawParams_DEFINED
9#define skgpu_graphite_DrawParams_DEFINED
45 float width()
const {
return 2.f * fHalfWidth; }
68 const Rect& shapeBounds,
72 , fTransformedShapeBounds(shapeBounds)
99 Rect fTransformedShapeBounds;
128 bool isStroke()
const {
return fStroke.has_value(); }
141 std::optional<StrokeStyle> fStroke;
@ kMiter_Join
extends to miter limit
@ kBevel_Join
connects outside edges
const Rect & drawBounds() const
const SkShader * shader() const
const SkIRect & scissor() const
bool isClippedOut() const
const Rect & transformedShapeBounds() const
Clip(const Rect &drawBounds, const Rect &shapeBounds, const SkIRect &scissor, const SkShader *shader)
const Clip & clip() const
const Transform & transform() const
DrawParams(const Transform &transform, const Geometry &geometry, const Clip &clip, DrawOrder drawOrder, const StrokeStyle *stroke)
const Geometry & geometry() const
const StrokeStyle & strokeStyle() const
AI bool isEmptyNegativeOrNaN() const
StrokeStyle(float width, float miterLimit, SkPaint::Join join, SkPaint::Cap cap)
SkPaint::Join join() const
StrokeStyle & operator=(const StrokeStyle &)=default
StrokeStyle(const StrokeStyle &)=default
static float max(float r, float g, float b)