Home
last modified time | relevance | path

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

123

/external/skia/src/utils/
DSkPatchUtils.cpp157 SkISize SkPatchUtils::GetLevelOfDetail(const SkPoint cubics[12], const SkMatrix* matrix) { in GetLevelOfDetail()
161 SkPatchUtils::GetTopCubic(cubics, pts); in GetLevelOfDetail()
165 SkPatchUtils::GetBottomCubic(cubics, pts); in GetLevelOfDetail()
169 SkPatchUtils::GetLeftCubic(cubics, pts); in GetLevelOfDetail()
173 SkPatchUtils::GetRightCubic(cubics, pts); in GetLevelOfDetail()
184 void SkPatchUtils::GetTopCubic(const SkPoint cubics[12], SkPoint points[4]) { in GetTopCubic()
185 points[0] = cubics[kTopP0_CubicCtrlPts]; in GetTopCubic()
186 points[1] = cubics[kTopP1_CubicCtrlPts]; in GetTopCubic()
187 points[2] = cubics[kTopP2_CubicCtrlPts]; in GetTopCubic()
188 points[3] = cubics[kTopP3_CubicCtrlPts]; in GetTopCubic()
[all …]
DSkPatchUtils.h28 static void GetTopCubic(const SkPoint cubics[12], SkPoint points[4]);
33 static void GetBottomCubic(const SkPoint cubics[12], SkPoint points[4]);
38 static void GetLeftCubic(const SkPoint cubics[12], SkPoint points[4]);
43 static void GetRightCubic(const SkPoint cubics[12], SkPoint points[4]);
48 static SkISize GetLevelOfDetail(const SkPoint cubics[12], const SkMatrix* matrix);
50 static sk_sp<SkVertices> MakeVertices(const SkPoint cubics[12], const SkColor colors[4],
DSkDumpCanvas.cpp487 void SkDumpCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch()
494 cubics[0].fX, cubics[0].fY, in onDrawPatch()
495 cubics[3].fX, cubics[3].fY, in onDrawPatch()
496 cubics[6].fX, cubics[6].fY, in onDrawPatch()
497 cubics[9].fX, cubics[9].fY, in onDrawPatch()
DSkPaintFilterCanvas.cpp160 void SkPaintFilterCanvas::onDrawPatch(const SkPoint cubics[], const SkColor colors[], in onDrawPatch() argument
165 this->INHERITED::onDrawPatch(cubics, colors, texCoords, bmode, *apf.paint()); in onDrawPatch()
DSkNWayCanvas.cpp300 void SkNWayCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch()
305 iter->drawPatch(cubics, colors, texCoords, bmode, paint); in onDrawPatch()
/external/skqp/src/utils/
DSkPatchUtils.cpp157 SkISize SkPatchUtils::GetLevelOfDetail(const SkPoint cubics[12], const SkMatrix* matrix) { in GetLevelOfDetail()
161 SkPatchUtils::GetTopCubic(cubics, pts); in GetLevelOfDetail()
165 SkPatchUtils::GetBottomCubic(cubics, pts); in GetLevelOfDetail()
169 SkPatchUtils::GetLeftCubic(cubics, pts); in GetLevelOfDetail()
173 SkPatchUtils::GetRightCubic(cubics, pts); in GetLevelOfDetail()
184 void SkPatchUtils::GetTopCubic(const SkPoint cubics[12], SkPoint points[4]) { in GetTopCubic()
185 points[0] = cubics[kTopP0_CubicCtrlPts]; in GetTopCubic()
186 points[1] = cubics[kTopP1_CubicCtrlPts]; in GetTopCubic()
187 points[2] = cubics[kTopP2_CubicCtrlPts]; in GetTopCubic()
188 points[3] = cubics[kTopP3_CubicCtrlPts]; in GetTopCubic()
[all …]
DSkPatchUtils.h28 static void GetTopCubic(const SkPoint cubics[12], SkPoint points[4]);
33 static void GetBottomCubic(const SkPoint cubics[12], SkPoint points[4]);
38 static void GetLeftCubic(const SkPoint cubics[12], SkPoint points[4]);
43 static void GetRightCubic(const SkPoint cubics[12], SkPoint points[4]);
48 static SkISize GetLevelOfDetail(const SkPoint cubics[12], const SkMatrix* matrix);
50 static sk_sp<SkVertices> MakeVertices(const SkPoint cubics[12], const SkColor colors[4],
DSkDumpCanvas.cpp487 void SkDumpCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch()
494 cubics[0].fX, cubics[0].fY, in onDrawPatch()
495 cubics[3].fX, cubics[3].fY, in onDrawPatch()
496 cubics[6].fX, cubics[6].fY, in onDrawPatch()
497 cubics[9].fX, cubics[9].fY, in onDrawPatch()
DSkPaintFilterCanvas.cpp160 void SkPaintFilterCanvas::onDrawPatch(const SkPoint cubics[], const SkColor colors[], in onDrawPatch() argument
165 this->INHERITED::onDrawPatch(cubics, colors, texCoords, bmode, *apf.paint()); in onDrawPatch()
DSkNWayCanvas.cpp300 void SkNWayCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch()
305 iter->drawPatch(cubics, colors, texCoords, bmode, paint); in onDrawPatch()
/external/skia/gm/
Dpatch.cpp25 static void draw_control_points(SkCanvas* canvas, const SkPoint cubics[12]) { in draw_control_points()
29 SkPatchUtils::GetBottomCubic(cubics, bottom); in draw_control_points()
31 SkPatchUtils::GetTopCubic(cubics, top); in draw_control_points()
33 SkPatchUtils::GetLeftCubic(cubics, left); in draw_control_points()
35 SkPatchUtils::GetRightCubic(cubics, right); in draw_control_points()
/external/skqp/gm/
Dpatch.cpp25 static void draw_control_points(SkCanvas* canvas, const SkPoint cubics[12]) { in draw_control_points()
29 SkPatchUtils::GetBottomCubic(cubics, bottom); in draw_control_points()
31 SkPatchUtils::GetTopCubic(cubics, top); in draw_control_points()
33 SkPatchUtils::GetLeftCubic(cubics, left); in draw_control_points()
35 SkPatchUtils::GetRightCubic(cubics, right); in draw_control_points()
/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/skqp/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/
DSkPictureRecord.h129 void addPatch(const SkPoint cubics[12]);
177 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
DSkRecorder.cpp319 void SkRecorder::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch()
323 cubics ? this->copy(cubics, SkPatchUtils::kNumCtrlPts) : nullptr, in onDrawPatch()
DSkLiteRecorder.cpp175 void SkLiteRecorder::onDrawPatch(const SkPoint cubics[12], in onDrawPatch()
178 fDL->drawPatch(cubics, colors, texCoords, bmode, paint); in onDrawPatch()
DSkDevice.cpp129 void SkBaseDevice::drawPatch(const SkPoint cubics[12], const SkColor colors[4], in drawPatch()
132 SkISize lod = SkPatchUtils::GetLevelOfDetail(cubics, &this->ctm()); in drawPatch()
133 auto vertices = SkPatchUtils::MakeVertices(cubics, colors, texCoords, lod.width(), lod.height(), in drawPatch()
DSkOverdrawCanvas.cpp171 void SkOverdrawCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch()
174 fList[0]->onDrawPatch(cubics, colors, texCoords, blendMode, fPaint); in onDrawPatch()
DSkLiteDL.cpp429 DrawPatch(const SkPoint cubics[12], const SkColor colors[4], const SkPoint texs[4], in DrawPatch()
433 copy_v(this->cubics, cubics, 12); in DrawPatch()
437 SkPoint cubics[12]; member
445 c->drawPatch(cubics, has_colors ? colors : nullptr, has_texs ? texs : nullptr, in draw()
/external/skqp/src/core/
DSkPictureRecord.h129 void addPatch(const SkPoint cubics[12]);
177 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
DSkRecorder.cpp319 void SkRecorder::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch()
323 cubics ? this->copy(cubics, SkPatchUtils::kNumCtrlPts) : nullptr, in onDrawPatch()
DSkLiteRecorder.cpp175 void SkLiteRecorder::onDrawPatch(const SkPoint cubics[12], in onDrawPatch()
178 fDL->drawPatch(cubics, colors, texCoords, bmode, paint); in onDrawPatch()
DSkDevice.cpp128 void SkBaseDevice::drawPatch(const SkPoint cubics[12], const SkColor colors[4], in drawPatch()
131 SkISize lod = SkPatchUtils::GetLevelOfDetail(cubics, &this->ctm()); in drawPatch()
132 auto vertices = SkPatchUtils::MakeVertices(cubics, colors, texCoords, lod.width(), lod.height(), in drawPatch()
DSkOverdrawCanvas.cpp171 void SkOverdrawCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch()
174 fList[0]->onDrawPatch(cubics, colors, texCoords, blendMode, fPaint); in onDrawPatch()

123