Lines Matching defs:dir
31 static SkPathFirstDirection AsFirstDirection(SkPathDirection dir) {
33 return (SkPathFirstDirection)dir;
40 static SkPathFirstDirection OppositeFirstDirection(SkPathFirstDirection dir) {
44 return gOppositeDir[(unsigned)dir];
221 dir receives SkPathDirection of oval: kCW_Direction if clockwise, kCCW_Direction if
225 rect, dir, and start are unmodified if oval is not found.
230 @param dir storage for SkPathDirection; may be nullptr
234 static bool IsOval(const SkPath& path, SkRect* rect, SkPathDirection* dir, unsigned* start) {
237 if (dir && result) {
238 *dir = isCCW ? SkPathDirection::kCCW : SkPathDirection::kCW;
248 dir receives SkPathDirection of oval: kCW_Direction if clockwise, kCCW_Direction if
252 rrect, dir, and start are unmodified if SkRRect is not found.
257 @param dir storage for SkPathDirection; may be nullptr
261 static bool IsRRect(const SkPath& path, SkRRect* rrect, SkPathDirection* dir,
265 if (dir && result) {
266 *dir = isCCW ? SkPathDirection::kCCW : SkPathDirection::kCW;