/external/skia/src/utils/ |
D | SkPatchGrid.cpp | 32 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 …]
|
D | SkPatchUtils.cpp | 117 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 …]
|
D | SkPatchUtils.h | 85 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],
|
D | SkDumpCanvas.cpp | 465 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()
|
D | SkPatchGrid.h | 102 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;
|
D | SkPaintFilterCanvas.cpp | 158 void SkPaintFilterCanvas::onDrawPatch(const SkPoint cubics[], const SkColor colors[], in onDrawPatch() argument 163 this->INHERITED::onDrawPatch(cubics, colors, texCoords, xmode, *apf.paint()); in onDrawPatch()
|
D | SkNWayCanvas.cpp | 286 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/ |
D | patch.cpp | 24 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 …]
|
D | patchgrid.cpp | 12 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/ |
D | PerlinPatch.cpp | 15 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/ |
D | SkRecorder.cpp | 313 void SkRecorder::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch() 316 cubics ? this->copy(cubics, SkPatchUtils::kNumCtrlPts) : nullptr, in onDrawPatch()
|
D | SkPictureRecord.h | 131 void addPatch(const SkPoint cubics[12]); 173 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
|
D | SkDevice.cpp | 87 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()
|
D | SkPictureRecord.cpp | 703 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()
|
D | SkRecorder.h | 89 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
|
D | SkPicturePlayback.cpp | 293 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/ |
D | SkPaintFilterCanvas.h | 85 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
|
D | SkNWayCanvas.h | 52 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
|
D | SkDumpCanvas.h | 93 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
|
/external/skia/tools/android/ |
D | SkAndroidSDKCanvas.cpp | 216 void SkAndroidSDKCanvas::onDrawPatch(const SkPoint cubics[12], in onDrawPatch() 222 fProxyTarget->drawPatch(cubics, colors, texCoords, xmode, filteredPaint); in onDrawPatch()
|
D | SkAndroidSDKCanvas.h | 68 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
|
/external/skia/tools/debugger/ |
D | SkDebugCanvas.h | 200 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
|
D | SkDebugCanvas.cpp | 489 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/ |
D | SkJSONCanvas.h | 241 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
|
/external/skia/include/core/ |
D | SkDevice.h | 248 virtual void drawPatch(const SkDraw&, const SkPoint cubics[12], const SkColor colors[4],
|