/external/chromium_org/third_party/skia/experimental/Intersection/ |
H A D | CubicParameterization_Test.cpp | 23 // upscale quadratics to cubics 54 // pairs of coincident cubics 55 // The on curve points of each cubic should be on both parameterized cubics. 56 const Cubic cubics[] = { variable 93 const size_t cubics_count = sizeof(cubics) / sizeof(cubics[0]); 100 if (!point_on_parameterized_curve(cubics[index], cubics[index][inner])) { 104 if (!point_on_parameterized_curve(cubics[index], cubics[inde [all...] |
H A D | SimplifyAddIntersectingTs_Test.cpp | 49 static const SkPoint cubics[][4] = { variable 55 static const size_t cubicCount = sizeof(cubics) / sizeof(cubics[0]); 75 path.moveTo(cubics[outer][0].fX, cubics[outer][0].fY); 76 path.cubicTo(cubics[outer][1].fX, cubics[outer][1].fY, 77 cubics[outer][2].fX, cubics[outer][2].fY, 78 cubics[oute [all...] |
H A D | CubicToQuadratics_Test.cpp | 8 static void test(const Cubic* cubics, const char* name, int firstTest, size_t testCount) { argument 11 const Cubic& cubic = cubics[index]; 36 static void testC(const Cubic* cubics, const char* name, int firstTest, size_t testCount) { argument 40 const Cubic& cubic = cubics[index]; 59 static void testC(const Cubic(* cubics)[2], const char* name, int firstTest, size_t testCount) { argument 63 const Cubic& cubic = cubics[index][idx2];
|
H A D | SimplifyAngle_Test.cpp | 43 static const SkPoint cubics[][4] = { variable 53 static const size_t cubicCount = sizeof(cubics) / sizeof(cubics[0]); 189 angle->set(cubics[x], SkPath::kCubic_Verb, 0, x, x + 1, dummy);
|
/external/skia/experimental/Intersection/ |
H A D | CubicParameterization_Test.cpp | 23 // upscale quadratics to cubics 54 // pairs of coincident cubics 55 // The on curve points of each cubic should be on both parameterized cubics. 56 const Cubic cubics[] = { variable 93 const size_t cubics_count = sizeof(cubics) / sizeof(cubics[0]); 100 if (!point_on_parameterized_curve(cubics[index], cubics[index][inner])) { 104 if (!point_on_parameterized_curve(cubics[index], cubics[inde [all...] |
H A D | SimplifyAddIntersectingTs_Test.cpp | 49 static const SkPoint cubics[][4] = { variable 55 static const size_t cubicCount = sizeof(cubics) / sizeof(cubics[0]); 75 path.moveTo(cubics[outer][0].fX, cubics[outer][0].fY); 76 path.cubicTo(cubics[outer][1].fX, cubics[outer][1].fY, 77 cubics[outer][2].fX, cubics[outer][2].fY, 78 cubics[oute [all...] |
H A D | CubicToQuadratics_Test.cpp | 8 static void test(const Cubic* cubics, const char* name, int firstTest, size_t testCount) { argument 11 const Cubic& cubic = cubics[index]; 36 static void testC(const Cubic* cubics, const char* name, int firstTest, size_t testCount) { argument 40 const Cubic& cubic = cubics[index]; 59 static void testC(const Cubic(* cubics)[2], const char* name, int firstTest, size_t testCount) { argument 63 const Cubic& cubic = cubics[index][idx2];
|
H A D | SimplifyAngle_Test.cpp | 43 static const SkPoint cubics[][4] = { variable 53 static const size_t cubicCount = sizeof(cubics) / sizeof(cubics[0]); 189 angle->set(cubics[x], SkPath::kCubic_Verb, 0, x, x + 1, dummy);
|
/external/chromium_org/third_party/skia/src/utils/ |
H A D | SkPatchGrid.cpp | 32 bool SkPatchGrid::setPatch(int x, int y, const SkPoint cubics[12], const SkColor colors[4], argument 35 // pointer for the cubics' control points. 36 if (x < 0 || y < 0 || x > fCols - 1 || y > fRows - 1 || NULL == cubics) { 42 fCornerPts[cornerPos] = cubics[SkPatchUtils::kTopP0_CubicCtrlPts]; 43 fCornerPts[cornerPos + 1] = cubics[SkPatchUtils::kTopP3_CubicCtrlPts]; 44 fCornerPts[cornerPos + (fCols + 1)] = cubics[SkPatchUtils::kBottomP0_CubicCtrlPts]; 45 fCornerPts[cornerPos + (fCols + 1) + 1] = cubics[SkPatchUtils::kBottomP3_CubicCtrlPts]; 49 fHrzCtrlPts[hrzPos] = cubics[SkPatchUtils::kTopP1_CubicCtrlPts]; 50 fHrzCtrlPts[hrzPos + 1] = cubics[SkPatchUtils::kTopP2_CubicCtrlPts]; 51 fHrzCtrlPts[hrzPos + (fCols * 2)] = cubics[SkPatchUtil 79 getPatch(int x, int y, SkPoint cubics[12], SkColor colors[4], SkPoint texCoords[4]) const argument 161 SkPoint cubics[12]; local 172 SkPoint cubics[12]; local [all...] |
H A D | SkPatchUtils.h | 85 static SkISize GetLevelOfDetail(const SkPoint cubics[12], const SkMatrix* matrix); 88 * Get the points corresponding to the top cubic of cubics. 90 static void getTopCubic(const SkPoint cubics[12], SkPoint points[4]); 93 * Get the points corresponding to the bottom cubic of cubics. 95 static void getBottomCubic(const SkPoint cubics[12], SkPoint points[4]); 98 * Get the points corresponding to the left cubic of cubics. 100 static void getLeftCubic(const SkPoint cubics[12], SkPoint points[4]); 103 * Get the points corresponding to the right cubic of cubics. 105 static void getRightCubic(const SkPoint cubics[12], SkPoint points[4]); 110 * cubics refer [all...] |
H A D | SkPatchUtils.cpp | 147 SkISize SkPatchUtils::GetLevelOfDetail(const SkPoint cubics[12], const SkMatrix* matrix) { argument 151 SkPatchUtils::getTopCubic(cubics, pts); 155 SkPatchUtils::getBottomCubic(cubics, pts); 159 SkPatchUtils::getLeftCubic(cubics, pts); 163 SkPatchUtils::getRightCubic(cubics, pts); 174 void SkPatchUtils::getTopCubic(const SkPoint cubics[12], SkPoint points[4]) { argument 175 points[0] = cubics[kTopP0_CubicCtrlPts]; 176 points[1] = cubics[kTopP1_CubicCtrlPts]; 177 points[2] = cubics[kTopP2_CubicCtrlPts]; 178 points[3] = cubics[kTopP3_CubicCtrlPt 181 getBottomCubic(const SkPoint cubics[12], SkPoint points[4]) argument 188 getLeftCubic(const SkPoint cubics[12], SkPoint points[4]) argument 195 getRightCubic(const SkPoint cubics[12], SkPoint points[4]) argument 202 getVertexData(SkPatchUtils::VertexData* data, const SkPoint cubics[12], const SkColor colors[4], const SkPoint texCoords[4], int lodX, int lodY) argument [all...] |
H A D | SkPatchGrid.h | 102 bool setPatch(int x, int y, const SkPoint cubics[12], const SkColor colors[4], 106 * Get patch at location (x,y). If cubics, colors or texCoords is not NULL it sets patch's 108 * The function returns false if the cubics parameter is NULL or if the (x,y) coordinates are 111 bool getPatch(int x, int y, SkPoint cubics[12], SkColor colors[4], SkPoint texCoords[4]) const;
|
H A D | SkDumpCanvas.cpp | 458 void SkDumpCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], argument 465 cubics[SkPatchUtils::kTopP0_CubicCtrlPts].fX, 466 cubics[SkPatchUtils::kTopP0_CubicCtrlPts].fY, 467 cubics[SkPatchUtils::kTopP3_CubicCtrlPts].fX, 468 cubics[SkPatchUtils::kTopP3_CubicCtrlPts].fY, 469 cubics[SkPatchUtils::kBottomP3_CubicCtrlPts].fX, 470 cubics[SkPatchUtils::kBottomP3_CubicCtrlPts].fY, 471 cubics[SkPatchUtils::kBottomP0_CubicCtrlPts].fX, 472 cubics[SkPatchUtils::kBottomP0_CubicCtrlPts].fY,
|
H A D | SkProxyCanvas.cpp | 158 void SkProxyCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], argument 161 fProxy->drawPatch(cubics, colors, texCoords, xmode, paint);
|
/external/chromium_org/third_party/skia/gm/ |
H A D | patch.cpp | 24 static void draw_control_points(SkCanvas* canvas, const SkPoint cubics[12]) { argument 28 SkPatchUtils::getBottomCubic(cubics, bottom); 30 SkPatchUtils::getTopCubic(cubics, top); 32 SkPatchUtils::getLeftCubic(cubics, left); 34 SkPatchUtils::getRightCubic(cubics, right); 69 * This GM draws a cubics coons patch using the specialized call SkCanvas::drawPatch. 96 const SkPoint cubics[SkPatchUtils::kNumCtrlPts] = { variable 131 canvas->drawPatch(cubics, NULL, NULL, xfer, paint); 134 canvas->drawPatch(cubics, colors, NULL, xfer, paint); 138 canvas->drawPatch(cubics, NUL [all...] |
H A D | patchgrid.cpp | 12 static void draw_control_points(SkCanvas* canvas, const SkPoint cubics[12]) { argument 16 SkPatchUtils::getBottomCubic(cubics, bottom); 18 SkPatchUtils::getTopCubic(cubics, top); 20 SkPatchUtils::getLeftCubic(cubics, left); 22 SkPatchUtils::getRightCubic(cubics, right); 152 SkPoint cubics[12]; variable 153 grid.getPatch(x, y, cubics, NULL, NULL); 154 draw_control_points(canvas, cubics);
|
/external/chromium_org/third_party/skia/tests/ |
H A D | PathOpsCubicToQuadsTest.cpp | 16 static void test(skiatest::Reporter* reporter, const SkDCubic* cubics, const char* name, argument 19 const SkDCubic& cubic = cubics[index]; 49 static void testC(skiatest::Reporter* reporter, const SkDCubic* cubics, const char* name, argument 53 const SkDCubic& cubic = cubics[index]; 72 static void testC(skiatest::Reporter* reporter, const SkDCubic(* cubics)[2], const char* name, argument 76 const SkDCubic& cubic = cubics[index][idx2];
|
/external/skia/tests/ |
H A D | PathOpsCubicToQuadsTest.cpp | 16 static void test(skiatest::Reporter* reporter, const SkDCubic* cubics, const char* name, argument 19 const SkDCubic& cubic = cubics[index]; 49 static void testC(skiatest::Reporter* reporter, const SkDCubic* cubics, const char* name, argument 53 const SkDCubic& cubic = cubics[index]; 72 static void testC(skiatest::Reporter* reporter, const SkDCubic(* cubics)[2], const char* name, argument 76 const SkDCubic& cubic = cubics[index][idx2];
|
/external/chromium_org/third_party/skia/src/core/ |
H A D | SkDevice.cpp | 84 void SkBaseDevice::drawPatch(const SkDraw& draw, const SkPoint cubics[12], const SkColor colors[4], argument 88 SkISize lod = SkPatchUtils::GetLevelOfDetail(cubics, draw.fMatrix); 92 if (SkPatchUtils::getVertexData(&data, cubics, colors, texCoords, lod.width(), lod.height())) {
|
H A D | SkBBoxRecord.cpp | 304 void SkBBoxRecord::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], argument 308 bbox.set(cubics, SkPatchUtils::kNumCtrlPts); 310 INHERITED::onDrawPatch(cubics, colors, texCoords, xmode, paint);
|
H A D | SkRecorder.cpp | 224 void SkRecorder::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], argument 227 cubics ? this->copy(cubics, SkPatchUtils::kNumCtrlPts) : NULL,
|
H A D | SkBBoxRecord.h | 71 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
|
H A D | SkRecorder.h | 98 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
|
/external/chromium_org/third_party/skia/include/utils/ |
H A D | SkNWayCanvas.h | 80 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
|
H A D | SkProxyCanvas.h | 77 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
|