[sksg] Temporarily inline Path fillType accessors
(to facilitate SkPathFillType conversion) Change-Id: I713cab5e4ecef51a251692bc745994ab0e71c43d Reviewed-on: https://skia-review.googlesource.com/c/skia/+/256219 Auto-Submit: Florin Malita <fmalita@chromium.org> Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Florin Malita <fmalita@chromium.org>
This commit is contained in:
parent
d07418c457
commit
be7e7ddcb6
@ -26,7 +26,20 @@ public:
|
||||
static sk_sp<Path> Make(const SkPath& r) { return sk_sp<Path>(new Path(r)); }
|
||||
|
||||
SG_ATTRIBUTE(Path, SkPath, fPath)
|
||||
SG_MAPPED_ATTRIBUTE(FillType, SkPath::FillType, fPath)
|
||||
|
||||
// Temporarily inlined for SkPathFillType staging
|
||||
// SG_MAPPED_ATTRIBUTE(FillType, SkPathFillType, fPath)
|
||||
|
||||
SkPath::FillType getFillType() const {
|
||||
return fPath.getFillType();
|
||||
}
|
||||
|
||||
void setFillType(SkPath::FillType fillType) {
|
||||
if (fillType != fPath.getFillType()) {
|
||||
fPath.setFillType(fillType);
|
||||
this->invalidate();
|
||||
}
|
||||
}
|
||||
|
||||
protected:
|
||||
void onClip(SkCanvas*, bool antiAlias) const override;
|
||||
|
Loading…
Reference in New Issue
Block a user