HomeSort by relevance Sort by last modified time
    Searched refs:cubics (Results 1 - 25 of 39) sorted by null

1 2

  /external/chromium_org/third_party/skia/experimental/Intersection/
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[index ^ 1][inner]))
    [all...]
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[outer][3].fX, cubics[outer][3].fY)
    [all...]
CubicToQuadratics_Test.cpp 8 static void test(const Cubic* cubics, const char* name, int firstTest, size_t testCount) {
11 const Cubic& cubic = cubics[index];
36 static void testC(const Cubic* cubics, const char* name, int firstTest, size_t testCount) {
40 const Cubic& cubic = cubics[index];
59 static void testC(const Cubic(* cubics)[2], const char* name, int firstTest, size_t testCount) {
63 const Cubic& cubic = cubics[index][idx2];
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/
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[index ^ 1][inner]))
    [all...]
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[outer][3].fX, cubics[outer][3].fY)
    [all...]
CubicToQuadratics_Test.cpp 8 static void test(const Cubic* cubics, const char* name, int firstTest, size_t testCount) {
11 const Cubic& cubic = cubics[index];
36 static void testC(const Cubic* cubics, const char* name, int firstTest, size_t testCount) {
40 const Cubic& cubic = cubics[index];
59 static void testC(const Cubic(* cubics)[2], const char* name, int firstTest, size_t testCount) {
63 const Cubic& cubic = cubics[index][idx2];
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/
SkPatchGrid.cpp 32 bool SkPatchGrid::setPatch(int x, int y, const SkPoint cubics[12], const SkColor colors[4],
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[SkPatchUtils::kBottomP1_CubicCtrlPts]
161 SkPoint cubics[12]; local
172 SkPoint cubics[12]; local
    [all...]
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 refers to the points of the cubics
    [all...]
SkPatchUtils.cpp 147 SkISize SkPatchUtils::GetLevelOfDetail(const SkPoint cubics[12], const SkMatrix* matrix) {
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]) {
175 points[0] = cubics[kTopP0_CubicCtrlPts];
176 points[1] = cubics[kTopP1_CubicCtrlPts];
177 points[2] = cubics[kTopP2_CubicCtrlPts];
178 points[3] = cubics[kTopP3_CubicCtrlPts]
    [all...]
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;
SkDumpCanvas.cpp 458 void SkDumpCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
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,
SkProxyCanvas.cpp 158 void SkProxyCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
161 fProxy->drawPatch(cubics, colors, texCoords, xmode, paint);
  /external/chromium_org/third_party/skia/gm/
patch.cpp 24 static void draw_control_points(SkCanvas* canvas, const SkPoint cubics[12]) {
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, NULL, texCoords, xfer, paint)
    [all...]
patchgrid.cpp 12 static void draw_control_points(SkCanvas* canvas, const SkPoint cubics[12]) {
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/
PathOpsCubicToQuadsTest.cpp 16 static void test(skiatest::Reporter* reporter, const SkDCubic* cubics, const char* name,
19 const SkDCubic& cubic = cubics[index];
49 static void testC(skiatest::Reporter* reporter, const SkDCubic* cubics, const char* name,
53 const SkDCubic& cubic = cubics[index];
72 static void testC(skiatest::Reporter* reporter, const SkDCubic(* cubics)[2], const char* name,
76 const SkDCubic& cubic = cubics[index][idx2];
  /external/skia/tests/
PathOpsCubicToQuadsTest.cpp 16 static void test(skiatest::Reporter* reporter, const SkDCubic* cubics, const char* name,
19 const SkDCubic& cubic = cubics[index];
49 static void testC(skiatest::Reporter* reporter, const SkDCubic* cubics, const char* name,
53 const SkDCubic& cubic = cubics[index];
72 static void testC(skiatest::Reporter* reporter, const SkDCubic(* cubics)[2], const char* name,
76 const SkDCubic& cubic = cubics[index][idx2];
  /external/chromium_org/third_party/skia/src/core/
SkDevice.cpp 84 void SkBaseDevice::drawPatch(const SkDraw& draw, const SkPoint cubics[12], const SkColor colors[4],
88 SkISize lod = SkPatchUtils::GetLevelOfDetail(cubics, draw.fMatrix);
92 if (SkPatchUtils::getVertexData(&data, cubics, colors, texCoords, lod.width(), lod.height())) {
SkBBoxRecord.h 71 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
SkBBoxRecord.cpp 304 void SkBBoxRecord::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
308 bbox.set(cubics, SkPatchUtils::kNumCtrlPts);
310 INHERITED::onDrawPatch(cubics, colors, texCoords, xmode, paint);
SkRecorder.cpp 224 void SkRecorder::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
227 cubics ? this->copy(cubics, SkPatchUtils::kNumCtrlPts) : NULL,
  /external/chromium_org/third_party/skia/include/utils/
SkDeferredCanvas.h 197 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
SkDumpCanvas.h 123 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
SkNWayCanvas.h 80 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],

Completed in 819 milliseconds

1 2