Home
last modified time | relevance | path

Searched refs:SkPathFirstDirection (Results 1 – 17 of 17) sorted by relevance

/external/skia/src/pathops/
DSkOpBuilder.cpp46 SkPathFirstDirection dir = SkPathPriv::ComputeFirstDirection(*path); in FixWinding()
47 if (dir != SkPathFirstDirection::kUnknown) { in FixWinding()
48 if (dir == SkPathFirstDirection::kCW) { in FixWinding()
132 SkPathFirstDirection firstDir = SkPathFirstDirection::kUnknown; in resolve()
141 SkPathFirstDirection dir = SkPathPriv::ComputeFirstDirection(*test); in resolve()
142 if (dir == SkPathFirstDirection::kUnknown) { in resolve()
146 if (firstDir == SkPathFirstDirection::kUnknown) { in resolve()
/external/skia/src/core/
DSkPathPriv.h30 static SkPathFirstDirection AsFirstDirection(SkPathDirection dir) { in AsFirstDirection()
32 return (SkPathFirstDirection)dir; in AsFirstDirection()
39 static SkPathFirstDirection OppositeFirstDirection(SkPathFirstDirection dir) { in OppositeFirstDirection()
40 static const SkPathFirstDirection gOppositeDir[] = { in OppositeFirstDirection()
41 SkPathFirstDirection::kCCW, SkPathFirstDirection::kCW, SkPathFirstDirection::kUnknown, in OppositeFirstDirection()
52 static SkPathFirstDirection ComputeFirstDirection(const SkPath&);
DSkPath_serial.cpp77 int firstDir = isCCW ? (int)SkPathFirstDirection::kCCW : (int)SkPathFirstDirection::kCW; in writeToMemoryAsRRect()
177 case (int)SkPathFirstDirection::kCW: in readAsRRect()
180 case (int)SkPathFirstDirection::kCCW: in readAsRRect()
DSkPath.cpp70 fSaved = static_cast<SkPathFirstDirection>(fPath->getFirstDirection()); in SkAutoDisableDirectionCheck()
79 SkPathFirstDirection fSaved;
151 SkPathFirstDirection firstDirection) in SkPath()
165 this->setFirstDirection(SkPathFirstDirection::kUnknown); in resetFields()
228 SkPathFirstDirection fd = this->getFirstDirection(); in swap()
258 SkPathFirstDirection dir) { in check_edge_against_rect()
261 if (SkPathFirstDirection::kCW == dir) { in check_edge_against_rect()
287 SkPathFirstDirection direction = SkPathPriv::ComputeFirstDirection(*this); in conservativelyContainsRect()
288 if (direction == SkPathFirstDirection::kUnknown) { in conservativelyContainsRect()
558 void SkPath::setFirstDirection(SkPathFirstDirection d) const { in setFirstDirection()
[all …]
DSkPathBuilder.cpp185 SkPathFirstDirection dir = SkPathFirstDirection::kUnknown; in make()
191 dir = fIsACCW ? SkPathFirstDirection::kCCW : SkPathFirstDirection::kCW; in make()
196 dir = fIsACCW ? SkPathFirstDirection::kCCW : SkPathFirstDirection::kCW; in make()
DSkStroke.cpp1507 if (SkPathPriv::ComputeFirstDirection(src) == SkPathFirstDirection::kCCW) { in strokePath()
/external/skia/tests/
DPathTest.cpp1051 const SkPathFirstDirection kDontCheckDir = static_cast<SkPathFirstDirection>(3);
1054 SkPathFirstDirection expected) { in check_direction()
1061 SkPathFirstDirection dir = SkPathPriv::ComputeFirstDirection(copy); in check_direction()
1062 if (dir != SkPathFirstDirection::kUnknown) { in check_direction()
1071 SkPathPriv::ComputeFirstDirection(path) == SkPathFirstDirection::kUnknown); in test_direction()
1086 SkPathPriv::ComputeFirstDirection(path) == SkPathFirstDirection::kUnknown); in test_direction()
1102 check_direction(reporter, path, SkPathFirstDirection::kCW); in test_direction()
1118 check_direction(reporter, path, SkPathFirstDirection::kCCW); in test_direction()
1126 check_direction(reporter, path, SkPathFirstDirection::kCW); in test_direction()
1131 check_direction(reporter, path, SkPathFirstDirection::kCCW); in test_direction()
[all …]
/external/skia/gm/
Dstrokefill.cpp306 SkASSERT(SkPathPriv::ComputeFirstDirection(path2) == SkPathFirstDirection::kCCW);
309 SkASSERT(SkPathPriv::ComputeFirstDirection(path2) == SkPathFirstDirection::kUnknown);
311 SkASSERT(SkPathPriv::ComputeFirstDirection(path2) == SkPathFirstDirection::kCW);
335 SkASSERT(SkPathPriv::ComputeFirstDirection(path4) == SkPathFirstDirection::kUnknown);
337 SkASSERT(SkPathPriv::ComputeFirstDirection(path4) == SkPathFirstDirection::kCCW);
344 SkASSERT(SkPathPriv::ComputeFirstDirection(path4) == SkPathFirstDirection::kUnknown);
346 SkASSERT(SkPathPriv::ComputeFirstDirection(path4) == SkPathFirstDirection::kCW);
Dconvex_all_line_paths.cpp261 SkPathFirstDirection actualDir = SkPathPriv::ComputeFirstDirection(path); in GetPath()
/external/skia/src/effects/
DSkOpPathEffect.cpp190 return (a_dir == SkPathFirstDirection::kCCW && in known_to_be_opposite_directions()
191 b_dir == SkPathFirstDirection::kCW) in known_to_be_opposite_directions()
193 (a_dir == SkPathFirstDirection::kCW && in known_to_be_opposite_directions()
194 b_dir == SkPathFirstDirection::kCCW); in known_to_be_opposite_directions()
/external/skia/src/gpu/geometry/
DGrPathUtils.cpp287 SkPathFirstDirection dir, in is_point_within_cubic_tangents()
291 if (SkPathFirstDirection::kCW == dir) { in is_point_within_cubic_tangents()
296 SkASSERT(SkPathFirstDirection::kCCW == dir); in is_point_within_cubic_tangents()
304 if (SkPathFirstDirection::kCW == dir) { in is_point_within_cubic_tangents()
309 SkASSERT(SkPathFirstDirection::kCCW == dir); in is_point_within_cubic_tangents()
384 SkPathFirstDirection dir, in convert_noninflect_cubic_to_quads_with_constraint()
534 SkPathFirstDirection dir, in convertCubicToQuadsConstrainToTangents()
DGrPathUtils.h132 SkPathFirstDirection dir,
DGrStyledShape.h206 SkPathPriv::ComputeFirstDirection(fShape.path()) != SkPathFirstDirection::kUnknown; in knownDirection()
/external/skia/src/gpu/effects/
DGrConvexPolyEffect.cpp96 SkPathFirstDirection dir = SkPathPriv::ComputeFirstDirection(path); in Make()
100 if (dir == SkPathFirstDirection::kUnknown) { in Make()
137 if (SkPathFirstDirection::kCCW == dir) { in Make()
/external/skia/src/gpu/ops/
DGrAAConvexPathRenderer.cpp120 SkPathFirstDirection dir, in compute_vectors()
130 if (dir == SkPathFirstDirection::kCCW) { in compute_vectors()
226 SkPathFirstDirection* dir) { in get_direction()
232 if (*dir == SkPathFirstDirection::kUnknown) { in get_direction()
269 SkPathFirstDirection dir, in add_cubic_segments()
294 SkPathFirstDirection dir; in get_segments()
/external/skia/include/core/
DSkPath.h1766 SkPathFirstDirection firstDirection);
1847 void setFirstDirection(SkPathFirstDirection) const;
1848 SkPathFirstDirection getFirstDirection() const;
/external/skia/include/private/
DSkPathRef.h35 enum class SkPathFirstDirection { enum