Skia: Be consistent about int for incReserve.

Upstream port.
This commit is contained in:
wolfbeast 2019-02-17 21:31:54 +01:00 committed by Roy Tam
commit c0ae9a7b5b
2 changed files with 5 additions and 3 deletions

View file

@ -373,7 +373,7 @@ public:
@param extraPtCount The number of extra points the path should
preallocate for.
*/
void incReserve(unsigned extraPtCount);
void incReserve(int extraPtCount);
/** Set the beginning of the next contour to the point (x,y).

View file

@ -716,9 +716,11 @@ void SkPath::setConvexity(Convexity c) {
fFirstDirection = SkPathPriv::kUnknown_FirstDirection; \
} while (0)
void SkPath::incReserve(U16CPU inc) {
void SkPath::incReserve(int inc) {
SkDEBUGCODE(this->validate();)
SkPathRef::Editor(&fPathRef, inc, inc);
if (inc > 0) {
SkPathRef::Editor(&fPathRef, inc, inc);
}
SkDEBUGCODE(this->validate();)
}