Lines Matching refs:SkPaint

8 #include "include/core/SkPaint.h"
45 SkPaint::SkPaint()
51 (unsigned)SkPaint::kDefault_Cap, // fCapType
52 (unsigned)SkPaint::kDefault_Join, // fJoinType
53 (unsigned)SkPaint::kFill_Style, // fStyle
59 SkPaint::SkPaint(const SkColor4f& color, SkColorSpace* colorSpace) : SkPaint() {
63 SkPaint::SkPaint(const SkPaint& src) = default;
65 SkPaint::SkPaint(SkPaint&& src) = default;
67 SkPaint::~SkPaint() = default;
69 SkPaint& SkPaint::operator=(const SkPaint& src) = default;
71 SkPaint& SkPaint::operator=(SkPaint&& src) = default;
73 bool operator==(const SkPaint& a, const SkPaint& b) {
90 sk_sp<Sk##type> SkPaint::ref##type() const { return f##type; }
100 void SkPaint::set##Field(sk_sp<Sk##Field> f) { f##Field = std::move(f); }
110 void SkPaint::reset() { *this = SkPaint(); }
112 void SkPaint::setStyle(Style style) {
117 SkDebugf("SkPaint::setStyle(%d) out of range\n", style);
122 void SkPaint::setStroke(bool isStroke) {
126 void SkPaint::setColor(SkColor color) {
130 void SkPaint::setColor(const SkColor4f& color, SkColorSpace* colorSpace) {
137 void SkPaint::setAlphaf(float a) {
141 void SkPaint::setARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b) {
145 skstd::optional<SkBlendMode> SkPaint::asBlendMode() const {
150 SkBlendMode SkPaint::getBlendMode_or(SkBlendMode defaultMode) const {
154 bool SkPaint::isSrcOver() const {
158 void SkPaint::setBlendMode(SkBlendMode mode) {
162 void SkPaint::setBlender(sk_sp<SkBlender> blender) {
166 void SkPaint::setStrokeWidth(SkScalar width) {
171 SkDebugf("SkPaint::setStrokeWidth() called with negative value\n");
176 void SkPaint::setStrokeMiter(SkScalar limit) {
181 SkDebugf("SkPaint::setStrokeMiter() called with negative value\n");
186 void SkPaint::setStrokeCap(Cap ct) {
191 SkDebugf("SkPaint::setStrokeCap(%d) out of range\n", ct);
196 void SkPaint::setStrokeJoin(Join jt) {
201 SkDebugf("SkPaint::setStrokeJoin(%d) out of range\n", jt);
228 // SkPaint originally defined flags, some of which now apply to SkFont. These are renames
250 static uint32_t pack_v68(const SkPaint& paint, unsigned flatFlags) {
267 static uint32_t unpack_v68(SkPaint* paint, uint32_t packed, SkSafeRange& safe) {
279 paint->setStrokeCap(safe.checkLE(packed & 0x3, SkPaint::kLast_Cap));
281 paint->setStrokeJoin(safe.checkLE(packed & 0x3, SkPaint::kLast_Join));
283 paint->setStyle(safe.checkLE(packed & 0x3, SkPaint::kStrokeAndFill_Style));
294 void SkPaintPriv::Flatten(const SkPaint& paint, SkWriteBuffer& buffer) {
322 SkPaint SkPaintPriv::Unflatten(SkReadBuffer& buffer) {
323 SkPaint paint;
337 // This is a simple SkPaint without any effects, so clear all the effect-related fields.
368 bool SkPaint::getFillPath(const SkPath& src, SkPath* dst, const SkRect* cullRect,
373 bool SkPaint::getFillPath(const SkPath& src, SkPath* dst, const SkRect* cullRect,
416 bool SkPaint::canComputeFastBounds() const {
428 const SkRect& SkPaint::doComputeFastBounds(const SkRect& origSrc,
470 bool SkPaint::nothingToDraw() const {