Lines Matching refs:SkPaint
44 SkPaint::SkPaint() in SkPaint() function in SkPaint
50 (unsigned)SkPaint::kDefault_Cap, // fCapType
51 (unsigned)SkPaint::kDefault_Join, // fJoinType
52 (unsigned)SkPaint::kFill_Style, // fStyle
60 SkPaint::SkPaint(const SkColor4f& color, SkColorSpace* colorSpace) : SkPaint() { in SkPaint() function in SkPaint
64 SkPaint::SkPaint(const SkPaint& src) = default;
66 SkPaint::SkPaint(SkPaint&& src) = default;
68 SkPaint::~SkPaint() = default;
70 SkPaint& SkPaint::operator=(const SkPaint& src) = default;
72 SkPaint& SkPaint::operator=(SkPaint&& src) = default;
74 bool operator==(const SkPaint& a, const SkPaint& b) { in operator ==()
89 #define DEFINE_REF_FOO(type) sk_sp<Sk##type> SkPaint::ref##type() const { return f##type; }
97 void SkPaint::reset() { *this = SkPaint(); } in DEFINE_REF_FOO()
99 void SkPaint::setStyle(Style style) { in setStyle()
109 void SkPaint::setStroke(bool isStroke) { in setStroke()
113 void SkPaint::setColor(SkColor color) { in setColor()
117 void SkPaint::setColor(const SkColor4f& color, SkColorSpace* colorSpace) { in setColor()
126 void SkPaint::setAlphaf(float a) { in setAlphaf()
131 void SkPaint::setARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b) { in setARGB()
135 void SkPaint::setStrokeWidth(SkScalar width) { in setStrokeWidth()
145 void SkPaint::setStrokeMiter(SkScalar limit) { in setStrokeMiter()
155 void SkPaint::setStrokeCap(Cap ct) { in setStrokeCap()
165 void SkPaint::setStrokeJoin(Join jt) { in setStrokeJoin()
177 #define MOVE_FIELD(Field) void SkPaint::set##Field(sk_sp<Sk##Field> f) { f##Field = std::move(f); }
227 static uint32_t pack_v68(const SkPaint& paint, unsigned flatFlags) { in pack_v68()
242 static uint32_t unpack_v68(SkPaint* paint, uint32_t packed, SkSafeRange& safe) { in unpack_v68()
248 paint->setStrokeCap(safe.checkLE(packed & 0x3, SkPaint::kLast_Cap)); in unpack_v68()
250 paint->setStrokeJoin(safe.checkLE(packed & 0x3, SkPaint::kLast_Join)); in unpack_v68()
252 paint->setStyle(safe.checkLE(packed & 0x3, SkPaint::kStrokeAndFill_Style)); in unpack_v68()
264 void SkPaintPriv::Flatten(const SkPaint& paint, SkWriteBuffer& buffer) { in Flatten()
291 SkReadPaintResult SkPaintPriv::Unflatten(SkPaint* paint, SkReadBuffer& buffer, SkFont* font) { in Unflatten()
328 bool SkPaint::getFillPath(const SkPath& src, SkPath* dst, const SkRect* cullRect, in getFillPath()
370 bool SkPaint::canComputeFastBounds() const { in canComputeFastBounds()
382 const SkRect& SkPaint::doComputeFastBounds(const SkRect& origSrc, in doComputeFastBounds()
424 bool SkPaint::nothingToDraw() const { in nothingToDraw()
443 uint32_t SkPaint::getHash() const { in getHash()
446 static_assert(offsetof(SkPaint, fBitfieldsUInt) == 5 * sizeof(void*) + 6 * sizeof(float), in getHash()
449 offsetof(SkPaint, fBitfieldsUInt) + sizeof(fBitfieldsUInt)); in getHash()