Lines Matching refs:Stroke
59 Stroke Stroke::CreateFrom(const SkPaint& paint) {
60 Stroke stroke = {
66 return stroke;
69 void Stroke::applyTo(SkPaint* paint) const {
76 static bool operator==(const Stroke& a, const Stroke& b) {
83 // The default SkGoodHash works fine for Stroke, as it's dense.
84 static_assert(sizeof(Stroke) == offsetof(Stroke, fJoin) + sizeof(Stroke().fJoin), "");
219 fEncoder->strokePath(p, common, this->id(Stroke::CreateFrom(paint)));
373 fEncoder->strokeText(t, offset, common, this->id(Stroke::CreateFrom(paint)));
454 ID define(const Stroke& v)O{return this->define(Type::kStroke, &fStroke, v);}
522 void strokePath(ID path, CommonIDs common, ID stroke) override {
526 fStroke.find(stroke).applyTo(&paint);
535 void strokeText(ID text, SkPoint offset, CommonIDs common, ID stroke) override {
538 fStroke.find(stroke).applyTo(&paint);
610 IDMap<Stroke , Type::kStroke > fStroke;
672 ID define(const Stroke& v) override { return this->define(&fStroke , v); }
700 void strokePath(ID path, CommonIDs common, ID stroke) override {
701 fWrapped->strokePath(path, common, stroke);
706 void strokeText(ID text, SkPoint offset, CommonIDs common, ID stroke) override {
707 fWrapped->strokeText(text, offset, common, stroke);
742 SkTHashMap<Stroke, ID> fStroke;