mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 09:18:42 +09:00
Skia: Be consistent about int for incReserve.
Upstream port.
This commit is contained in:
parent
c50284d997
commit
c0ae9a7b5b
2 changed files with 5 additions and 3 deletions
|
|
@ -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).
|
||||
|
||||
|
|
|
|||
|
|
@ -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();)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue