/third_party/skia/src/pathops/ |
H A D | SkOpBuilder.cpp | 46 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()
|
/third_party/skia/src/core/ |
H A D | SkPathPriv.h | 31 static SkPathFirstDirection AsFirstDirection(SkPathDirection dir) { in AsFirstDirection() 33 return (SkPathFirstDirection)dir; in AsFirstDirection() 40 static SkPathFirstDirection OppositeFirstDirection(SkPathFirstDirection dir) { in OppositeFirstDirection() 41 static const SkPathFirstDirection gOppositeDir[] = { in OppositeFirstDirection() 42 SkPathFirstDirection::kCCW, SkPathFirstDirection::kCW, SkPathFirstDirection::kUnknown, in OppositeFirstDirection() 53 static SkPathFirstDirection ComputeFirstDirection(const SkPath&);
|
H A D | SkPath.cpp | 70 fSaved = static_cast<SkPathFirstDirection>(fPath->getFirstDirection()); in SkAutoDisableDirectionCheck() 79 SkPathFirstDirection fSaved; 153 SkPathFirstDirection firstDirection) in SkPath() 167 this->setFirstDirection(SkPathFirstDirection::kUnknown); in resetFields() 230 SkPathFirstDirection fd = this->getFirstDirection(); in swap() 260 SkPathFirstDirection dir) { in check_edge_against_rect() 263 if (SkPathFirstDirection::kCW == dir) { in check_edge_against_rect() 289 SkPathFirstDirection direction = SkPathPriv::ComputeFirstDirection(*this); in conservativelyContainsRect() 290 if (direction == SkPathFirstDirection::kUnknown) { in conservativelyContainsRect() 560 void SkPath::setFirstDirection(SkPathFirstDirection in setConvexity() [all...] |
H A D | SkPath_serial.cpp | 77 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()
|
H A D | SkPathBuilder.cpp | 189 SkPathFirstDirection dir = SkPathFirstDirection::kUnknown; in make() 195 dir = fIsACCW ? SkPathFirstDirection::kCCW : SkPathFirstDirection::kCW; in make() 200 dir = fIsACCW ? SkPathFirstDirection::kCCW : SkPathFirstDirection::kCW; in make()
|
H A D | SkStroke.cpp | 1507 if (SkPathPriv::ComputeFirstDirection(src) == SkPathFirstDirection::kCCW) {
|
/third_party/skia/tests/ |
H A D | PathTest.cpp | 1051 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 in test_direction() [all...] |
/third_party/skia/src/effects/ |
H A D | SkOpPathEffect.cpp | 192 return (a_dir == SkPathFirstDirection::kCCW && in known_to_be_opposite_directions() 193 b_dir == SkPathFirstDirection::kCW) in known_to_be_opposite_directions() 195 (a_dir == SkPathFirstDirection::kCW && in known_to_be_opposite_directions() 196 b_dir == SkPathFirstDirection::kCCW); in known_to_be_opposite_directions()
|
/third_party/skia/src/gpu/effects/ |
H A D | GrConvexPolyEffect.cpp | 23 SkPathFirstDirection dir = SkPathPriv::ComputeFirstDirection(path); in Make() 27 if (dir == SkPathFirstDirection::kUnknown) { in Make() 62 if (SkPathFirstDirection::kCCW == dir) { in Make()
|
/third_party/skia/src/gpu/geometry/ |
H A D | GrPathUtils.cpp | 287 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()
|
H A D | GrPathUtils.h | 133 SkPathFirstDirection dir,
|
H A D | GrStyledShape.h | 206 SkPathPriv::ComputeFirstDirection(fShape.path()) != SkPathFirstDirection::kUnknown; in knownDirection()
|
/third_party/skia/gm/ |
H A D | strokefill.cpp | 306 SkASSERT(SkPathPriv::ComputeFirstDirection(path2) == SkPathFirstDirection::kCCW); in DEF_SIMPLE_GM_BG_NAME() 309 SkASSERT(SkPathPriv::ComputeFirstDirection(path2) == SkPathFirstDirection::kUnknown); in DEF_SIMPLE_GM_BG_NAME() 311 SkASSERT(SkPathPriv::ComputeFirstDirection(path2) == SkPathFirstDirection::kCW); in DEF_SIMPLE_GM_BG_NAME() 335 SkASSERT(SkPathPriv::ComputeFirstDirection(path4) == SkPathFirstDirection::kUnknown); in DEF_SIMPLE_GM_BG_NAME() 337 SkASSERT(SkPathPriv::ComputeFirstDirection(path4) == SkPathFirstDirection::kCCW); in DEF_SIMPLE_GM_BG_NAME() 344 SkASSERT(SkPathPriv::ComputeFirstDirection(path4) == SkPathFirstDirection::kUnknown); in DEF_SIMPLE_GM_BG_NAME() 346 SkASSERT(SkPathPriv::ComputeFirstDirection(path4) == SkPathFirstDirection::kCW); in DEF_SIMPLE_GM_BG_NAME()
|
H A D | convex_all_line_paths.cpp | 261 SkPathFirstDirection actualDir = SkPathPriv::ComputeFirstDirection(path); in GetPath()
|
/third_party/skia/src/gpu/ops/ |
H A D | AAConvexPathRenderer.cpp | 121 SkPathFirstDirection dir, in compute_vectors() 131 if (dir == SkPathFirstDirection::kCCW) { in compute_vectors() 226 inline bool get_direction(const SkPath& path, const SkMatrix& m, SkPathFirstDirection* dir) { in get_direction() 232 if (*dir == SkPathFirstDirection::kUnknown) { in get_direction() 267 SkPathFirstDirection dir, in add_cubic_segments() 292 SkPathFirstDirection dir; in get_segments()
|
/third_party/skia/include/core/ |
H A D | SkPath.h | 1773 SkPathFirstDirection firstDirection); 1778 mutable std::atomic<uint8_t> fFirstDirection; // SkPathFirstDirection 1854 void setFirstDirection(SkPathFirstDirection) const; 1855 SkPathFirstDirection getFirstDirection() const;
|
/third_party/skia/include/private/ |
H A D | SkPathRef.h | 35 enum class SkPathFirstDirection { class
|