[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:
Florin Malita 2019-11-25 09:03:35 -05:00 committed by Skia Commit-Bot
parent d07418c457
commit be7e7ddcb6

View File

@ -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;