Home
last modified time | relevance | path

Searched refs:cubics (Results 1 – 25 of 34) sorted by relevance

12

/external/skia/src/utils/
DSkPatchGrid.cpp32 bool SkPatchGrid::setPatch(int x, int y, const SkPoint cubics[12], const SkColor colors[4], in setPatch()
36 if (x < 0 || y < 0 || x > fCols - 1 || y > fRows - 1 || nullptr == cubics) { in setPatch()
42 fCornerPts[cornerPos] = cubics[SkPatchUtils::kTopP0_CubicCtrlPts]; in setPatch()
43 fCornerPts[cornerPos + 1] = cubics[SkPatchUtils::kTopP3_CubicCtrlPts]; in setPatch()
44 fCornerPts[cornerPos + (fCols + 1)] = cubics[SkPatchUtils::kBottomP0_CubicCtrlPts]; in setPatch()
45 fCornerPts[cornerPos + (fCols + 1) + 1] = cubics[SkPatchUtils::kBottomP3_CubicCtrlPts]; in setPatch()
49 fHrzCtrlPts[hrzPos] = cubics[SkPatchUtils::kTopP1_CubicCtrlPts]; in setPatch()
50 fHrzCtrlPts[hrzPos + 1] = cubics[SkPatchUtils::kTopP2_CubicCtrlPts]; in setPatch()
51 fHrzCtrlPts[hrzPos + (fCols * 2)] = cubics[SkPatchUtils::kBottomP1_CubicCtrlPts]; in setPatch()
52 fHrzCtrlPts[hrzPos + (fCols * 2) + 1] = cubics[SkPatchUtils::kBottomP2_CubicCtrlPts]; in setPatch()
[all …]
DSkPatchUtils.cpp117 SkISize SkPatchUtils::GetLevelOfDetail(const SkPoint cubics[12], const SkMatrix* matrix) { in GetLevelOfDetail()
121 SkPatchUtils::getTopCubic(cubics, pts); in GetLevelOfDetail()
125 SkPatchUtils::getBottomCubic(cubics, pts); in GetLevelOfDetail()
129 SkPatchUtils::getLeftCubic(cubics, pts); in GetLevelOfDetail()
133 SkPatchUtils::getRightCubic(cubics, pts); in GetLevelOfDetail()
144 void SkPatchUtils::getTopCubic(const SkPoint cubics[12], SkPoint points[4]) { in getTopCubic()
145 points[0] = cubics[kTopP0_CubicCtrlPts]; in getTopCubic()
146 points[1] = cubics[kTopP1_CubicCtrlPts]; in getTopCubic()
147 points[2] = cubics[kTopP2_CubicCtrlPts]; in getTopCubic()
148 points[3] = cubics[kTopP3_CubicCtrlPts]; in getTopCubic()
[all …]
DSkPatchUtils.h85 static SkISize GetLevelOfDetail(const SkPoint cubics[12], const SkMatrix* matrix);
90 static void getTopCubic(const SkPoint cubics[12], SkPoint points[4]);
95 static void getBottomCubic(const SkPoint cubics[12], SkPoint points[4]);
100 static void getLeftCubic(const SkPoint cubics[12], SkPoint points[4]);
105 static void getRightCubic(const SkPoint cubics[12], SkPoint points[4]);
116 static bool getVertexData(SkPatchUtils::VertexData* data, const SkPoint cubics[12],
DSkDumpCanvas.cpp465 void SkDumpCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch()
472 cubics[SkPatchUtils::kTopP0_CubicCtrlPts].fX, in onDrawPatch()
473 cubics[SkPatchUtils::kTopP0_CubicCtrlPts].fY, in onDrawPatch()
474 cubics[SkPatchUtils::kTopP3_CubicCtrlPts].fX, in onDrawPatch()
475 cubics[SkPatchUtils::kTopP3_CubicCtrlPts].fY, in onDrawPatch()
476 cubics[SkPatchUtils::kBottomP3_CubicCtrlPts].fX, in onDrawPatch()
477 cubics[SkPatchUtils::kBottomP3_CubicCtrlPts].fY, in onDrawPatch()
478 cubics[SkPatchUtils::kBottomP0_CubicCtrlPts].fX, in onDrawPatch()
479 cubics[SkPatchUtils::kBottomP0_CubicCtrlPts].fY, in onDrawPatch()
DSkPatchGrid.h102 bool setPatch(int x, int y, const SkPoint cubics[12], const SkColor colors[4],
111 bool getPatch(int x, int y, SkPoint cubics[12], SkColor colors[4], SkPoint texCoords[4]) const;
DSkPaintFilterCanvas.cpp158 void SkPaintFilterCanvas::onDrawPatch(const SkPoint cubics[], const SkColor colors[], in onDrawPatch() argument
163 this->INHERITED::onDrawPatch(cubics, colors, texCoords, xmode, *apf.paint()); in onDrawPatch()
DSkNWayCanvas.cpp286 void SkNWayCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch()
291 iter->drawPatch(cubics, colors, texCoords, xmode, paint); in onDrawPatch()
/external/skia/gm/
Dpatch.cpp24 static void draw_control_points(SkCanvas* canvas, const SkPoint cubics[12]) { in draw_control_points()
28 SkPatchUtils::getBottomCubic(cubics, bottom); in draw_control_points()
30 SkPatchUtils::getTopCubic(cubics, top); in draw_control_points()
32 SkPatchUtils::getLeftCubic(cubics, left); in draw_control_points()
34 SkPatchUtils::getRightCubic(cubics, right); in draw_control_points()
71 const SkPoint cubics[SkPatchUtils::kNumCtrlPts] = { variable
106 canvas->drawPatch(cubics, nullptr, nullptr, xfer, paint);
109 canvas->drawPatch(cubics, colors, nullptr, xfer, paint);
113 canvas->drawPatch(cubics, nullptr, texCoords, xfer, paint);
118 canvas->drawPatch(cubics, colors, texCoords, xfer, paint);
[all …]
Dpatchgrid.cpp12 static void draw_control_points(SkCanvas* canvas, const SkPoint cubics[12]) { in draw_control_points()
16 SkPatchUtils::getBottomCubic(cubics, bottom); in draw_control_points()
18 SkPatchUtils::getTopCubic(cubics, top); in draw_control_points()
20 SkPatchUtils::getLeftCubic(cubics, left); in draw_control_points()
22 SkPatchUtils::getRightCubic(cubics, right); in draw_control_points()
148 SkPoint cubics[12]; in onDraw() local
149 grid.getPatch(x, y, cubics, nullptr, nullptr); in onDraw()
150 draw_control_points(canvas, cubics); in onDraw()
/external/skia/samplecode/
DPerlinPatch.cpp15 static void draw_control_points(SkCanvas* canvas, const SkPoint cubics[12]) { in draw_control_points()
19 SkPatchUtils::getBottomCubic(cubics, bottom); in draw_control_points()
21 SkPatchUtils::getTopCubic(cubics, top); in draw_control_points()
23 SkPatchUtils::getLeftCubic(cubics, left); in draw_control_points()
25 SkPatchUtils::getRightCubic(cubics, right); in draw_control_points()
/external/skia/src/core/
DSkRecorder.cpp313 void SkRecorder::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch()
316 cubics ? this->copy(cubics, SkPatchUtils::kNumCtrlPts) : nullptr, in onDrawPatch()
DSkPictureRecord.h131 void addPatch(const SkPoint cubics[12]);
173 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
DSkDevice.cpp87 void SkBaseDevice::drawPatch(const SkDraw& draw, const SkPoint cubics[12], const SkColor colors[4], in drawPatch()
91 SkISize lod = SkPatchUtils::GetLevelOfDetail(cubics, draw.fMatrix); in drawPatch()
95 if (SkPatchUtils::getVertexData(&data, cubics, colors, texCoords, lod.width(), lod.height())) { in drawPatch()
DSkPictureRecord.cpp703 void SkPictureRecord::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch()
727 this->addPatch(cubics); in onDrawPatch()
895 void SkPictureRecord::addPatch(const SkPoint cubics[12]) { in addPatch()
896 fWriter.write(cubics, SkPatchUtils::kNumCtrlPts * sizeof(SkPoint)); in addPatch()
DSkRecorder.h89 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
DSkPicturePlayback.cpp293 const SkPoint* cubics = (const SkPoint*)reader->skip(SkPatchUtils::kNumCtrlPts * in handleOp() local
313 canvas->drawPatch(cubics, colors, texCoords, xfer, paint); in handleOp()
/external/skia/include/utils/
DSkPaintFilterCanvas.h85 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
DSkNWayCanvas.h52 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
DSkDumpCanvas.h93 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
/external/skia/tools/android/
DSkAndroidSDKCanvas.cpp216 void SkAndroidSDKCanvas::onDrawPatch(const SkPoint cubics[12], in onDrawPatch()
222 fProxyTarget->drawPatch(cubics, colors, texCoords, xmode, filteredPaint); in onDrawPatch()
DSkAndroidSDKCanvas.h68 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
/external/skia/tools/debugger/
DSkDebugCanvas.h200 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
DSkDebugCanvas.cpp489 void SkDebugCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch()
492 this->addDrawCommand(new SkDrawPatchCommand(cubics, colors, texCoords, xmode, paint)); in onDrawPatch()
/external/skia/tools/json/
DSkJSONCanvas.h241 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
/external/skia/include/core/
DSkDevice.h248 virtual void drawPatch(const SkDraw&, const SkPoint cubics[12], const SkColor colors[4],

12