/external/skia/tests/ |
D | PathOpsSimplifyTest.cpp | 12 SkPath path; in testLine1() 21 SkPath path; in testLine1x() 22 path.setFillType(SkPath::kEvenOdd_FillType); in testLine1x() 30 static void addInnerCWTriangle(SkPath& path) { in addInnerCWTriangle() 37 static void addInnerCCWTriangle(SkPath& path) { in addInnerCCWTriangle() 44 static void addOuterCWTriangle(SkPath& path) { in addOuterCWTriangle() 51 static void addOuterCCWTriangle(SkPath& path) { in addOuterCCWTriangle() 59 SkPath path; in testLine2() 60 path.setFillType(SkPath::kEvenOdd_FillType); in testLine2() 67 SkPath path; in testLine2x() [all …]
|
D | PathOpsOpTest.cpp | 12 SkPath path, pathB; in cubicOp1d() 13 path.setFillType(SkPath::kWinding_FillType); in cubicOp1d() 17 pathB.setFillType(SkPath::kWinding_FillType); in cubicOp1d() 25 SkPath path, pathB; in cubicOp2d() 26 path.setFillType(SkPath::kWinding_FillType); in cubicOp2d() 30 pathB.setFillType(SkPath::kWinding_FillType); in cubicOp2d() 38 SkPath path, pathB; in cubicOp3d() 39 path.setFillType(SkPath::kWinding_FillType); in cubicOp3d() 43 pathB.setFillType(SkPath::kWinding_FillType); in cubicOp3d() 51 SkPath path, pathB; in cubicOp5d() [all …]
|
D | PathTest.cpp | 24 static void make_path0(SkPath* path) { in make_path0() 35 static void make_path1(SkPath* path) { in make_path1() 39 typedef void (*PathProc)(SkPath*); 58 SkPath path; in test_path_to_region() 77 SkPath path; in test_path_close_issue1474() 128 SkPath original, source, anotherSource; in test_android_specific_behavior() 137 SkPath copy(original); in test_android_specific_behavior() 142 SkPath assign; in test_android_specific_behavior() 176 SkPath a, b; in test_gen_id() 200 SkPath c(a); in test_gen_id() [all …]
|
D | PathOpsSkpTest.cpp | 12 SkPath path; in skpcheeseandburger_com225() 13 path.setFillType(SkPath::kEvenOdd_FillType); in skpcheeseandburger_com225() 20 SkPath pathB; in skpcheeseandburger_com225() 21 pathB.setFillType(SkPath::kWinding_FillType); in skpcheeseandburger_com225() 373 SkPath path; in skpeverytechpro_blogspot_com100() 374 path.setFillType(SkPath::kEvenOdd_FillType); in skpeverytechpro_blogspot_com100() 397 SkPath pathB; in skpeverytechpro_blogspot_com100() 398 pathB.setFillType(SkPath::kWinding_FillType); in skpeverytechpro_blogspot_com100() 407 SkPath path; in skpflite_com41() 408 path.setFillType(SkPath::kEvenOdd_FillType); in skpflite_com41() [all …]
|
D | PathOpsInverseTest.cpp | 10 SkPath one, two; in PathOpsInverseTest() 12 for (int oneFill = SkPath::kWinding_FillType; oneFill <= SkPath::kInverseEvenOdd_FillType; in PathOpsInverseTest() 14 for (int oneDir = SkPath::kCW_Direction; oneDir != SkPath::kCCW_Direction; ++oneDir) { in PathOpsInverseTest() 16 one.setFillType((SkPath::FillType) oneFill); in PathOpsInverseTest() 17 one.addRect(0, 0, 6, 6, (SkPath::Direction) oneDir); in PathOpsInverseTest() 18 for (int twoFill = SkPath::kWinding_FillType; in PathOpsInverseTest() 19 twoFill <= SkPath::kInverseEvenOdd_FillType; ++twoFill) { in PathOpsInverseTest() 20 for (int twoDir = SkPath::kCW_Direction; twoDir != SkPath::kCCW_Direction; in PathOpsInverseTest() 23 two.setFillType((SkPath::FillType) twoFill); in PathOpsInverseTest() 24 two.addRect(3, 3, 9, 9, (SkPath::Direction) twoDir); in PathOpsInverseTest()
|
D | PathOpsExtendedTest.cpp | 86 static void showPathContours(SkPath::RawIter& iter, const char* pathName) { in showPathContours() 89 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in showPathContours() 91 case SkPath::kMove_Verb: in showPathContours() 95 case SkPath::kLine_Verb: in showPathContours() 99 case SkPath::kQuad_Verb: in showPathContours() 103 case SkPath::kCubic_Verb: in showPathContours() 107 case SkPath::kClose_Verb: in showPathContours() 117 static void showPath(const SkPath& path, const char* pathName, bool includeDeclaration) { in showPath() 118 SkPath::RawIter iter(path); in showPath() 124 SkTDArray<SkPath::Direction> directions; in showPath() [all …]
|
D | PathOpsExtendedTest.h | 26 extern int comparePaths(const SkPath& one, const SkPath& two, SkBitmap& bitmap); 27 extern bool drawAsciiPaths(const SkPath& one, const SkPath& two, bool drawPaths); 29 extern bool testPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b, 31 extern bool testThreadedPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b, 33 extern bool testSimplify(SkPath& path, bool useXor, SkPath& out, PathOpsThreadState& state, 35 extern bool testSimplify(skiatest::Reporter* reporter, const SkPath& path); 38 void outputProgress(char* ramStr, const char* pathStr, SkPath::FillType ); 46 void ShowPath(const SkPath& path, const char* pathName);
|
D | PathOpsOpRectThreadedTest.cpp | 30 for (int e = SkPath::kWinding_FillType ; e <= SkPath::kEvenOdd_FillType; ++e) { in testPathOpsRectsMain() 31 for (int f = SkPath::kWinding_FillType ; f <= SkPath::kEvenOdd_FillType; ++f) { in testPathOpsRectsMain() 35 e == SkPath::kWinding_FillType ? "Winding" : e == SkPath::kEvenOdd_FillType in testPathOpsRectsMain() 42 f == SkPath::kWinding_FillType ? "Winding" : f == SkPath::kEvenOdd_FillType in testPathOpsRectsMain() 49 SkPath pathA, pathB; in testPathOpsRectsMain() 50 pathA.setFillType((SkPath::FillType) e); in testPathOpsRectsMain() 52 SkIntToScalar(state.fB), SkPath::kCW_Direction); in testPathOpsRectsMain() 54 SkIntToScalar(state.fD), SkPath::kCW_Direction); in testPathOpsRectsMain() 56 pathB.setFillType((SkPath::FillType) f); in testPathOpsRectsMain() 58 SkIntToScalar(b), SkPath::kCW_Direction); in testPathOpsRectsMain() [all …]
|
D | EmptyPathTest.cpp | 19 static void appendStr(SkString* str, const SkPath& path) { in appendStr() 26 static void drawAndTest(skiatest::Reporter* reporter, const SkPath& path, in drawAndTest() 70 static void iter_paint(skiatest::Reporter* reporter, const SkPath& path, bool shouldDraw) { in iter_paint() 108 static void make_empty(SkPath*) {} in make_empty() argument 109 static void make_M(SkPath* path) { path->moveTo(CX, CY); } in make_M() 110 static void make_MM(SkPath* path) { path->moveTo(CX, CY); path->moveTo(CX, CY); } in make_MM() 111 static void make_MZM(SkPath* path) { path->moveTo(CX, CY); path->close(); path->moveTo(CX, CY); } in make_MZM() 112 static void make_L(SkPath* path) { path->moveTo(CX, CY); path->lineTo(CX, CY); } in make_L() 113 static void make_Q(SkPath* path) { path->moveTo(CX, CY); path->quadTo(CX, CY, CX, CY); } in make_Q() 114 static void make_C(SkPath* path) { path->moveTo(CX, CY); path->cubicTo(CX, CY, CX, CY, CX, CY); } in make_C() [all …]
|
/external/skia/src/core/ |
D | SkPathHeap.cpp | 16 SkPathHeap::SkPathHeap() : fHeap(kPathCount * sizeof(SkPath)) { in SkPathHeap() 20 : fHeap(kPathCount * sizeof(SkPath)) { in SkPathHeap() 24 SkPath** ptr = fPaths.begin(); in SkPathHeap() 25 SkPath* p = (SkPath*)fHeap.allocThrow(count * sizeof(SkPath)); in SkPathHeap() 28 new (p) SkPath; in SkPathHeap() 36 SkPath** iter = fPaths.begin(); in ~SkPathHeap() 37 SkPath** stop = fPaths.end(); in ~SkPathHeap() 39 (*iter)->~SkPath(); in ~SkPathHeap() 44 int SkPathHeap::append(const SkPath& path) { in append() 45 SkPath* p = (SkPath*)fHeap.allocThrow(sizeof(SkPath)); in append() [all …]
|
D | SkEdgeBuilder.cpp | 54 SkPath::Verb verb; in addClipper() 56 while ((verb = clipper->next(pts)) != SkPath::kDone_Verb) { in addClipper() 58 case SkPath::kLine_Verb: in addClipper() 61 case SkPath::kQuad_Verb: in addClipper() 64 case SkPath::kCubic_Verb: in addClipper() 82 int SkEdgeBuilder::buildPoly(const SkPath& path, const SkIRect* iclip, in buildPoly() 84 SkPath::Iter iter(path, true); in buildPoly() 86 SkPath::Verb verb; in buildPoly() 109 while ((verb = iter.next(pts, false)) != SkPath::kDone_Verb) { in buildPoly() 111 case SkPath::kMove_Verb: in buildPoly() [all …]
|
D | SkPathRef.cpp | 132 segmentMask = (oldPacked >> SkPath::kOldSegmentMask_SerializationShift) & 0xF; in CreateFromBuffer() 133 isOval = (oldPacked >> SkPath::kOldIsOval_SerializationShift) & 1; in CreateFromBuffer() 303 case SkPath::kMove_Verb: in growForRepeatedVerb() 307 case SkPath::kLine_Verb: in growForRepeatedVerb() 308 fSegmentMask |= SkPath::kLine_SegmentMask; in growForRepeatedVerb() 311 case SkPath::kQuad_Verb: in growForRepeatedVerb() 312 fSegmentMask |= SkPath::kQuad_SegmentMask; in growForRepeatedVerb() 315 case SkPath::kConic_Verb: in growForRepeatedVerb() 316 fSegmentMask |= SkPath::kConic_SegmentMask; in growForRepeatedVerb() 319 case SkPath::kCubic_Verb: in growForRepeatedVerb() [all …]
|
D | SkPath.cpp | 32 static bool is_degenerate(const SkPath& path) { in is_degenerate() 33 SkPath::Iter iter(path, false); in is_degenerate() 35 return SkPath::kDone_Verb == iter.next(pts); in is_degenerate() 40 SkAutoDisableDirectionCheck(SkPath* path) : fPath(path) { in SkAutoDisableDirectionCheck() 41 fSaved = static_cast<SkPath::Direction>(fPath->fDirection); in SkAutoDisableDirectionCheck() 49 SkPath* fPath; 50 SkPath::Direction fSaved; 68 SkAutoPathBoundsUpdate(SkPath* path, const SkRect& r) : fRect(r) { in SkAutoPathBoundsUpdate() 72 SkAutoPathBoundsUpdate(SkPath* path, SkScalar left, SkScalar top, in SkAutoPathBoundsUpdate() 79 fPath->setConvexity(fDegenerate ? SkPath::kConvex_Convexity in ~SkAutoPathBoundsUpdate() [all …]
|
/external/chromium_org/third_party/skia/src/core/ |
D | SkPathHeap.cpp | 16 SkPathHeap::SkPathHeap() : fHeap(kPathCount * sizeof(SkPath)) { in SkPathHeap() 20 : fHeap(kPathCount * sizeof(SkPath)) { in SkPathHeap() 24 SkPath** ptr = fPaths.begin(); in SkPathHeap() 25 SkPath* p = (SkPath*)fHeap.allocThrow(count * sizeof(SkPath)); in SkPathHeap() 28 new (p) SkPath; in SkPathHeap() 36 SkPath** iter = fPaths.begin(); in ~SkPathHeap() 37 SkPath** stop = fPaths.end(); in ~SkPathHeap() 39 (*iter)->~SkPath(); in ~SkPathHeap() 44 int SkPathHeap::append(const SkPath& path) { in append() 45 SkPath* p = (SkPath*)fHeap.allocThrow(sizeof(SkPath)); in append() [all …]
|
D | SkEdgeBuilder.cpp | 54 SkPath::Verb verb; in addClipper() 56 while ((verb = clipper->next(pts)) != SkPath::kDone_Verb) { in addClipper() 58 case SkPath::kLine_Verb: in addClipper() 61 case SkPath::kQuad_Verb: in addClipper() 64 case SkPath::kCubic_Verb: in addClipper() 82 int SkEdgeBuilder::buildPoly(const SkPath& path, const SkIRect* iclip, in buildPoly() 84 SkPath::Iter iter(path, true); in buildPoly() 86 SkPath::Verb verb; in buildPoly() 109 while ((verb = iter.next(pts, false)) != SkPath::kDone_Verb) { in buildPoly() 111 case SkPath::kMove_Verb: in buildPoly() [all …]
|
D | SkPathRef.cpp | 132 segmentMask = (oldPacked >> SkPath::kOldSegmentMask_SerializationShift) & 0xF; in CreateFromBuffer() 133 isOval = (oldPacked >> SkPath::kOldIsOval_SerializationShift) & 1; in CreateFromBuffer() 303 case SkPath::kMove_Verb: in growForRepeatedVerb() 307 case SkPath::kLine_Verb: in growForRepeatedVerb() 308 fSegmentMask |= SkPath::kLine_SegmentMask; in growForRepeatedVerb() 311 case SkPath::kQuad_Verb: in growForRepeatedVerb() 312 fSegmentMask |= SkPath::kQuad_SegmentMask; in growForRepeatedVerb() 315 case SkPath::kConic_Verb: in growForRepeatedVerb() 316 fSegmentMask |= SkPath::kConic_SegmentMask; in growForRepeatedVerb() 319 case SkPath::kCubic_Verb: in growForRepeatedVerb() [all …]
|
D | SkPath.cpp | 32 static bool is_degenerate(const SkPath& path) { in is_degenerate() 33 SkPath::Iter iter(path, false); in is_degenerate() 35 return SkPath::kDone_Verb == iter.next(pts); in is_degenerate() 40 SkAutoDisableDirectionCheck(SkPath* path) : fPath(path) { in SkAutoDisableDirectionCheck() 41 fSaved = static_cast<SkPath::Direction>(fPath->fDirection); in SkAutoDisableDirectionCheck() 49 SkPath* fPath; 50 SkPath::Direction fSaved; 68 SkAutoPathBoundsUpdate(SkPath* path, const SkRect& r) : fRect(r) { in SkAutoPathBoundsUpdate() 72 SkAutoPathBoundsUpdate(SkPath* path, SkScalar left, SkScalar top, in SkAutoPathBoundsUpdate() 79 fPath->setConvexity(fDegenerate ? SkPath::kConvex_Convexity in ~SkAutoPathBoundsUpdate() [all …]
|
/external/skia/src/pathops/ |
D | SkOpEdgeBuilder.cpp | 24 void SkOpEdgeBuilder::addOperand(const SkPath& path) { in addOperand() 25 SkASSERT(fPathVerbs.count() > 0 && fPathVerbs.end()[-1] == SkPath::kDone_Verb); in addOperand() 46 fPathVerbs.push_back(SkPath::kLine_Verb); in closeContour() 51 fPathVerbs.push_back(SkPath::kClose_Verb); in closeContour() 61 SkPath::RawIter iter(*fPath); in preFetch() 65 SkPath::Verb verb; in preFetch() 70 case SkPath::kMove_Verb: in preFetch() 79 case SkPath::kLine_Verb: in preFetch() 82 if (lastVerb != SkPath::kLine_Verb && lastVerb != SkPath::kMove_Verb) { in preFetch() 88 case SkPath::kQuad_Verb: in preFetch() [all …]
|
/external/chromium_org/third_party/skia/src/pathops/ |
D | SkOpEdgeBuilder.cpp | 24 void SkOpEdgeBuilder::addOperand(const SkPath& path) { in addOperand() 25 SkASSERT(fPathVerbs.count() > 0 && fPathVerbs.end()[-1] == SkPath::kDone_Verb); in addOperand() 46 fPathVerbs.push_back(SkPath::kLine_Verb); in closeContour() 51 fPathVerbs.push_back(SkPath::kClose_Verb); in closeContour() 61 SkPath::RawIter iter(*fPath); in preFetch() 65 SkPath::Verb verb; in preFetch() 70 case SkPath::kMove_Verb: in preFetch() 79 case SkPath::kLine_Verb: in preFetch() 82 if (lastVerb != SkPath::kLine_Verb && lastVerb != SkPath::kMove_Verb) { in preFetch() 88 case SkPath::kQuad_Verb: in preFetch() [all …]
|
/external/chromium_org/third_party/skia/include/effects/ |
D | Sk2DPathEffect.h | 19 virtual bool filterPath(SkPath*, const SkPath&, 31 virtual void begin(const SkIRect& uvBounds, SkPath* dst) const; 32 virtual void next(const SkPoint& loc, int u, int v, SkPath* dst) const; 33 virtual void end(SkPath* dst) const; 39 virtual void nextSpan(int u, int v, int ucount, SkPath* dst) const; 64 virtual bool filterPath(SkPath* dst, const SkPath& src, 70 virtual void nextSpan(int u, int v, int ucount, SkPath*) const SK_OVERRIDE; 88 SkPath2DPathEffect(const SkMatrix&, const SkPath&); 96 virtual void next(const SkPoint&, int u, int v, SkPath*) const SK_OVERRIDE; 99 SkPath fPath;
|
/external/skia/include/effects/ |
D | Sk2DPathEffect.h | 19 virtual bool filterPath(SkPath*, const SkPath&, 31 virtual void begin(const SkIRect& uvBounds, SkPath* dst) const; 32 virtual void next(const SkPoint& loc, int u, int v, SkPath* dst) const; 33 virtual void end(SkPath* dst) const; 39 virtual void nextSpan(int u, int v, int ucount, SkPath* dst) const; 64 virtual bool filterPath(SkPath* dst, const SkPath& src, 70 virtual void nextSpan(int u, int v, int ucount, SkPath*) const SK_OVERRIDE; 88 SkPath2DPathEffect(const SkMatrix&, const SkPath&); 96 virtual void next(const SkPoint&, int u, int v, SkPath*) const SK_OVERRIDE; 99 SkPath fPath;
|
/external/skia/src/effects/ |
D | SkCornerPathEffect.cpp | 33 bool SkCornerPathEffect::filterPath(SkPath* dst, const SkPath& src, in filterPath() 39 SkPath::Iter iter(src, false); in filterPath() 40 SkPath::Verb verb, prevVerb = (SkPath::Verb)-1; in filterPath() 55 case SkPath::kMove_Verb: in filterPath() 57 if (SkPath::kLine_Verb == prevVerb) { in filterPath() 69 case SkPath::kLine_Verb: { in filterPath() 86 case SkPath::kQuad_Verb: in filterPath() 96 case SkPath::kCubic_Verb: in filterPath() 106 case SkPath::kClose_Verb: in filterPath() 114 case SkPath::kConic_Verb: in filterPath() [all …]
|
D | Sk1DPathEffect.cpp | 14 bool Sk1DPathEffect::filterPath(SkPath* dst, const SkPath& src, in filterPath() 33 SkPath1DPathEffect::SkPath1DPathEffect(const SkPath& path, SkScalar advance, in SkPath1DPathEffect() 71 bool SkPath1DPathEffect::filterPath(SkPath* dst, const SkPath& src, in filterPath() 111 static void morphpath(SkPath* dst, const SkPath& src, SkPathMeasure& meas, in morphpath() 113 SkPath::Iter iter(src, false); in morphpath() 115 SkPath::Verb verb; in morphpath() 117 while ((verb = iter.next(srcP)) != SkPath::kDone_Verb) { in morphpath() 119 case SkPath::kMove_Verb: in morphpath() 124 case SkPath::kLine_Verb: in morphpath() 129 case SkPath::kQuad_Verb: in morphpath() [all …]
|
/external/chromium_org/third_party/skia/src/effects/ |
D | SkCornerPathEffect.cpp | 33 bool SkCornerPathEffect::filterPath(SkPath* dst, const SkPath& src, in filterPath() 39 SkPath::Iter iter(src, false); in filterPath() 40 SkPath::Verb verb, prevVerb = (SkPath::Verb)-1; in filterPath() 55 case SkPath::kMove_Verb: in filterPath() 57 if (SkPath::kLine_Verb == prevVerb) { in filterPath() 69 case SkPath::kLine_Verb: { in filterPath() 86 case SkPath::kQuad_Verb: in filterPath() 96 case SkPath::kCubic_Verb: in filterPath() 106 case SkPath::kClose_Verb: in filterPath() 114 case SkPath::kConic_Verb: in filterPath() [all …]
|
D | Sk1DPathEffect.cpp | 14 bool Sk1DPathEffect::filterPath(SkPath* dst, const SkPath& src, in filterPath() 33 SkPath1DPathEffect::SkPath1DPathEffect(const SkPath& path, SkScalar advance, in SkPath1DPathEffect() 71 bool SkPath1DPathEffect::filterPath(SkPath* dst, const SkPath& src, in filterPath() 111 static void morphpath(SkPath* dst, const SkPath& src, SkPathMeasure& meas, in morphpath() 113 SkPath::Iter iter(src, false); in morphpath() 115 SkPath::Verb verb; in morphpath() 117 while ((verb = iter.next(srcP)) != SkPath::kDone_Verb) { in morphpath() 119 case SkPath::kMove_Verb: in morphpath() 124 case SkPath::kLine_Verb: in morphpath() 129 case SkPath::kQuad_Verb: in morphpath() [all …]
|