Update to newer path fill-type API in Skia (flutter/engine#14070)

This commit is contained in:
Brian Osman 2019-12-03 11:57:54 -05:00 committed by GitHub
parent 69d5294a7a
commit ebb0a18d75

View File

@ -71,11 +71,11 @@ CanvasPath::CanvasPath() {}
CanvasPath::~CanvasPath() {}
int CanvasPath::getFillType() {
return path_.getFillType();
return static_cast<int>(path_.getFillType());
}
void CanvasPath::setFillType(int fill_type) {
path_.setFillType(static_cast<SkPath::FillType>(fill_type));
path_.setFillType(static_cast<SkPathFillType>(fill_type));
}
void CanvasPath::moveTo(float x, float y) {