Lines Matching refs:Direction
259 SkPathPriv::FirstDirection direction;
260 if (!SkPathPriv::CheapComputeFirstDirection(*this, &direction)) {
311 if (!check_edge_against_rect(quadPts[0], quadPts[2], rect, direction)) {
314 if (!check_edge_against_rect(quadPts[2], quadPts[4], rect, direction)) {
318 if (!check_edge_against_rect(prevPt, pts[nextPt], rect, direction)) {
326 return check_edge_against_rect(prevPt, firstPt, rect, direction);
379 Determines if path is a rect by keeping track of changes in direction
382 The direction is computed such that:
394 There's more than four changes of direction.
396 The line reverses direction.
409 The direction takes advantage of the corners found since opposite sides
416 first,last,next direction state-machine:
428 bool* isClosed, Direction* direction) const {
480 return false; // too many direction changes
493 return false; // direction didn't follow cycle
546 if (result && direction) {
547 *direction = firstDirection == ((lastDirection + 1) & 3) ? kCCW_Direction : kCW_Direction;
552 bool SkPath::isRect(SkRect* rect, bool* isClosed, Direction* direction) const {
557 if (!this->isRectContour(false, &currVerb, &pts, isClosed, direction)) {
572 bool SkPath::isNestedFillRects(SkRect rects[2], Direction dirs[2]) const {
577 Direction testDirs[2];
888 PointIterator(SkPath::Direction dir, unsigned startIndex)
912 RectPointIterator(const SkRect& rect, SkPath::Direction dir, unsigned startIndex)
924 OvalPointIterator(const SkRect& oval, SkPath::Direction dir, unsigned startIndex)
939 RRectPointIterator(const SkRRect& rrect, SkPath::Direction dir, unsigned startIndex)
965 void SkPath::addRect(const SkRect& rect, Direction dir) {
970 SkScalar bottom, Direction dir) {
974 void SkPath::addRect(const SkRect &rect, Direction dir, unsigned startIndex) {
1097 Direction dir) {
1103 void SkPath::addRRect(const SkRRect& rrect, Direction dir) {
1108 void SkPath::addRRect(const SkRRect &rrect, Direction dir, unsigned startIndex) {
1203 Direction dir) {
1219 void SkPath::addOval(const SkRect& oval, Direction dir) {
1224 void SkPath::addOval(const SkRect &oval, Direction dir, unsigned startPointIndex) {
1265 void SkPath::addCircle(SkScalar x, SkScalar y, SkScalar r, Direction dir) {
1313 SkPath::Direction arcSweep, SkScalar x, SkScalar y) {
1410 SkPath::Direction sweep, SkScalar dx, SkScalar dy) {
2264 /** The direction returned is only valid if the path is determined convex */
2384 SkFAIL("Use of invalid direction change flag");
2683 // SkScalar, since we just want - or + to signal the direction.
2705 // x-direction. We really should continue to walk away from the degeneracy until
2708 // construct the subtract so we get the correct Direction below