Searched refs:cubics (Results 1 - 25 of 39) sorted by relevance

12

/external/chromium_org/third_party/skia/experimental/Intersection/
H A DCubicParameterization_Test.cpp23 // 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 DSimplifyAddIntersectingTs_Test.cpp49 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 DCubicToQuadratics_Test.cpp8 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 DSimplifyAngle_Test.cpp43 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 DCubicParameterization_Test.cpp23 // 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 DSimplifyAddIntersectingTs_Test.cpp49 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 DCubicToQuadratics_Test.cpp8 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 DSimplifyAngle_Test.cpp43 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 DSkPatchGrid.cpp32 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 DSkPatchUtils.h85 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 DSkPatchUtils.cpp147 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 DSkPatchGrid.h102 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 DSkDumpCanvas.cpp458 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 DSkProxyCanvas.cpp158 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 Dpatch.cpp24 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 Dpatchgrid.cpp12 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 DPathOpsCubicToQuadsTest.cpp16 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 DPathOpsCubicToQuadsTest.cpp16 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 DSkDevice.cpp84 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 DSkBBoxRecord.cpp304 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 DSkRecorder.cpp224 void SkRecorder::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], argument
227 cubics ? this->copy(cubics, SkPatchUtils::kNumCtrlPts) : NULL,
H A DSkBBoxRecord.h71 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
H A DSkRecorder.h98 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
/external/chromium_org/third_party/skia/include/utils/
H A DSkNWayCanvas.h80 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
H A DSkProxyCanvas.h77 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],

Completed in 4538 milliseconds

12