Lines Matching refs:SkPaint
43 SkPaint::SkPaint() in SkPaint() function in SkPaint
49 (unsigned)SkPaint::kDefault_Cap, // fCapType
50 (unsigned)SkPaint::kDefault_Join, // fJoinType
51 (unsigned)SkPaint::kFill_Style, // fStyle
59 SkPaint::SkPaint(const SkPaint& src) = default;
61 SkPaint::SkPaint(SkPaint&& src) = default;
63 SkPaint::~SkPaint() = default;
65 SkPaint& SkPaint::operator=(const SkPaint& src) = default;
67 SkPaint& SkPaint::operator=(SkPaint&& src) = default;
69 bool operator==(const SkPaint& a, const SkPaint& b) { in operator ==()
85 #define DEFINE_REF_FOO(type) sk_sp<Sk##type> SkPaint::ref##type() const { return f##type; }
94 void SkPaint::reset() { *this = SkPaint(); } in DEFINE_REF_FOO()
96 void SkPaint::setFilterQuality(SkFilterQuality quality) { in setFilterQuality()
100 void SkPaint::setStyle(Style style) { in setStyle()
110 void SkPaint::setColor(SkColor color) { in setColor()
114 void SkPaint::setColor4f(const SkColor4f& color, SkColorSpace* colorSpace) { in setColor4f()
123 void SkPaint::setAlphaf(float a) { in setAlphaf()
128 void SkPaint::setARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b) { in setARGB()
132 void SkPaint::setStrokeWidth(SkScalar width) { in setStrokeWidth()
142 void SkPaint::setStrokeMiter(SkScalar limit) { in setStrokeMiter()
152 void SkPaint::setStrokeCap(Cap ct) { in setStrokeCap()
162 void SkPaint::setStrokeJoin(Join jt) { in setStrokeJoin()
174 #define MOVE_FIELD(Field) void SkPaint::set##Field(sk_sp<Sk##Field> f) { f##Field = std::move(f); }
182 void SkPaint::setLooper(sk_sp<SkDrawLooper> looper) { fDrawLooper = std::move(looper); } in MOVE_FIELD()
234 static FlatFlags unpack_paint_flags(SkPaint* paint, uint32_t packed, SkFont* font) { in unpack_paint_flags()
279 static uint32_t pack_v68(const SkPaint& paint, unsigned flatFlags) { in pack_v68()
292 static uint32_t unpack_v68(SkPaint* paint, uint32_t packed, SkSafeRange& safe) { in unpack_v68()
298 paint->setStrokeCap(safe.checkLE(packed & 0x3, SkPaint::kLast_Cap)); in unpack_v68()
300 paint->setStrokeJoin(safe.checkLE(packed & 0x3, SkPaint::kLast_Join)); in unpack_v68()
302 paint->setStyle(safe.checkLE(packed & 0x3, SkPaint::kStrokeAndFill_Style)); in unpack_v68()
312 void SkPaintPriv::Flatten(const SkPaint& paint, SkWriteBuffer& buffer) { in Flatten()
340 SkReadPaintResult SkPaintPriv::Unflatten_PreV68(SkPaint* paint, SkReadBuffer& buffer, SkFont* font)… in Unflatten_PreV68()
367 paint->setStrokeCap(safe.checkLE((tmp >> 24) & 0xFF, SkPaint::kLast_Cap)); in Unflatten_PreV68()
368 paint->setStrokeJoin(safe.checkLE((tmp >> 16) & 0xFF, SkPaint::kLast_Join)); in Unflatten_PreV68()
369 paint->setStyle(safe.checkLE((tmp >> 12) & 0xF, SkPaint::kStrokeAndFill_Style)); in Unflatten_PreV68()
404 SkReadPaintResult SkPaintPriv::Unflatten(SkPaint* paint, SkReadBuffer& buffer, SkFont* font) { in Unflatten()
446 bool SkPaint::getFillPath(const SkPath& src, SkPath* dst, const SkRect* cullRect, in getFillPath()
481 bool SkPaint::canComputeFastBounds() const { in canComputeFastBounds()
491 const SkRect& SkPaint::doComputeFastBounds(const SkRect& origSrc, in doComputeFastBounds()
538 bool SkPaint::nothingToDraw() const { in nothingToDraw()
560 uint32_t SkPaint::getHash() const { in getHash()
563 static_assert(offsetof(SkPaint, fBitfieldsUInt) == 6 * sizeof(void*) + 6 * sizeof(float), in getHash()
566 offsetof(SkPaint, fBitfieldsUInt) + sizeof(fBitfieldsUInt)); in getHash()