Home
last modified time | relevance | path

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

12

/third_party/skia/src/utils/
DSkPatchUtils.cpp163 SkISize SkPatchUtils::GetLevelOfDetail(const SkPoint cubics[12], const SkMatrix* matrix) { in GetLevelOfDetail()
166 SkPatchUtils::GetTopCubic(cubics, pts); in GetLevelOfDetail()
170 SkPatchUtils::GetBottomCubic(cubics, pts); in GetLevelOfDetail()
174 SkPatchUtils::GetLeftCubic(cubics, pts); in GetLevelOfDetail()
178 SkPatchUtils::GetRightCubic(cubics, pts); in GetLevelOfDetail()
193 void SkPatchUtils::GetTopCubic(const SkPoint cubics[12], SkPoint points[4]) { in GetTopCubic()
194 points[0] = cubics[kTopP0_CubicCtrlPts]; in GetTopCubic()
195 points[1] = cubics[kTopP1_CubicCtrlPts]; in GetTopCubic()
196 points[2] = cubics[kTopP2_CubicCtrlPts]; in GetTopCubic()
197 points[3] = cubics[kTopP3_CubicCtrlPts]; in GetTopCubic()
[all …]
DSkPatchUtils.h30 static void GetTopCubic(const SkPoint cubics[12], SkPoint points[4]);
35 static void GetBottomCubic(const SkPoint cubics[12], SkPoint points[4]);
40 static void GetLeftCubic(const SkPoint cubics[12], SkPoint points[4]);
45 static void GetRightCubic(const SkPoint cubics[12], SkPoint points[4]);
50 static SkISize GetLevelOfDetail(const SkPoint cubics[12], const SkMatrix* matrix);
52 static sk_sp<SkVertices> MakeVertices(const SkPoint cubics[12], const SkColor colors[4],
DSkPaintFilterCanvas.cpp153 void SkPaintFilterCanvas::onDrawPatch(const SkPoint cubics[], const SkColor colors[], in onDrawPatch() argument
158 this->SkNWayCanvas::onDrawPatch(cubics, colors, texCoords, bmode, apf.paint()); in onDrawPatch()
DSkNWayCanvas.cpp326 void SkNWayCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch()
331 iter->drawPatch(cubics, colors, texCoords, bmode, paint); in onDrawPatch()
/third_party/skia/docs/examples/
DCanvas_drawPatch_2_a.cpp10 SkPoint cubics[] = { { 3, 1 }, { 4, 2 }, { 5, 1 }, { 7, 3 },
16 canvas->drawPatch(cubics, colors, nullptr, paint);
28 canvas->drawPoints(SkCanvas::kPolygon_PointMode, 12, cubics, paint);
29 canvas->drawLine(cubics[11].fX, cubics[11].fY, cubics[0].fX, cubics[0].fY, paint);
DCanvas_drawPatch_2_b.cpp10 SkPoint cubics[] = { { 3, 1 }, { 4, 2 }, { 5, 1 }, { 7, 3 }, in draw() local
17 canvas->drawPatch(cubics, nullptr, texCoords, paint); in draw()
DCanvas_drawPatch.cpp10 SkPoint cubics[] = { { 3, 1 }, { 4, 2 }, { 5, 1 }, { 7, 3 }, in draw() local
19 canvas->drawPatch(cubics, colors, texCoords, blend, paint); in draw()
Ddraw_patch.cpp15 const SkPoint cubics[] = {{100, 100}, {150, 50}, {250, 150}, {300, 100}, in draw() local
20 canvas->drawPatch(cubics, nullptr, texCoords, SkBlendMode::kSrcOver, p); in draw()
/third_party/skia/modules/skottie/src/layers/shapelayer/
DPuckerBloat.cpp58 std::vector<CubicInfo> cubics; in onRevalidateEffect() local
62 for (const auto& c : cubics) { in onRevalidateEffect()
69 cubics.clear(); in onRevalidateEffect()
88 cubics.push_back({ in onRevalidateEffect()
96 cubics.push_back({pts[1], pts[2], pts[3]}); in onRevalidateEffect()
105 const auto conic_start = cubics.empty() ? contour_start in onRevalidateEffect()
106 : cubics.back().pt, in onRevalidateEffect()
109 cubics.push_back({ in onRevalidateEffect()
116 cubics.push_back({pts[1], pts[2], pts[3]}); in onRevalidateEffect()
/third_party/skia/gm/
Dpatch.cpp36 static void draw_control_points(SkCanvas* canvas, const SkPoint cubics[12]) { in draw_control_points()
40 SkPatchUtils::GetBottomCubic(cubics, bottom); in draw_control_points()
42 SkPatchUtils::GetTopCubic(cubics, top); in draw_control_points()
44 SkPatchUtils::GetLeftCubic(cubics, left); in draw_control_points()
46 SkPatchUtils::GetRightCubic(cubics, right); in draw_control_points()
Dbicubic.cpp42 SkImage::CubicResampler cubics[] = { variable
46 for (auto c : cubics) {
Druntimecolorfilter.cpp136 const SkPoint cubics[12] = { variable
185 canvas->drawPatch(cubics, nullptr, pos, paint); in __anon101948970502()
/third_party/skia/src/core/
DSkPictureRecord.h132 void addPatch(const SkPoint cubics[12]);
177 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
DSkOverdrawCanvas.cpp94 void SkOverdrawCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch()
97 fList[0]->onDrawPatch(cubics, colors, texCoords, blendMode, fPaint); in onDrawPatch()
DSkRecorder.cpp258 void SkRecorder::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch()
262 cubics ? this->copy(cubics, SkPatchUtils::kNumCtrlPts) : nullptr, in onDrawPatch()
DSkDevice.cpp161 void SkBaseDevice::drawPatch(const SkPoint cubics[12], const SkColor colors[4], in drawPatch()
163 SkISize lod = SkPatchUtils::GetLevelOfDetail(cubics, &this->localToDevice()); in drawPatch()
164 auto vertices = SkPatchUtils::MakeVertices(cubics, colors, texCoords, lod.width(), lod.height(), in drawPatch()
DSkPictureRecord.cpp639 void SkPictureRecord::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch()
660 this->addPatch(cubics); in onDrawPatch()
863 void SkPictureRecord::addPatch(const SkPoint cubics[12]) { in addPatch()
864 fWriter.write(cubics, SkPatchUtils::kNumCtrlPts * sizeof(SkPoint)); in addPatch()
DSkRecorder.h77 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
/third_party/skia/include/core/
DSkCanvasVirtualEnforcer.h37 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
DSkCanvas.h2015 void drawPatch(const SkPoint cubics[12], const SkColor colors[4],
2045 void drawPatch(const SkPoint cubics[12], const SkColor colors[4], in drawPatch()
2047 this->drawPatch(cubics, colors, texCoords, SkBlendMode::kModulate, paint); in drawPatch()
2259 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
/third_party/skia/include/utils/
DSkPaintFilterCanvas.h71 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
DSkNWayCanvas.h43 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
/third_party/skia/modules/canvaskit/npm_build/types/
Dcanvaskit-wasm-tests.ts130 const cubics = [1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, constant
134 canvas.drawPatch(cubics, null, null, null, paint);
135 canvas.drawPatch(cubics, colors, null, CK.BlendMode.Clear, paint);
136 canvas.drawPatch(cubics, null, texs, null, paint);
137 canvas.drawPatch(cubics, colors, texs, CK.BlendMode.SrcOver, paint);
/third_party/skia/tools/debugger/
DDebugCanvas.h156 void onDrawPatch(const SkPoint cubics[12],
/third_party/skia/tools/
DMSKPPlayer.cpp179 void onDrawPatch(const SkPoint cubics[12], in onDrawPatch()
184 fRecorder.getRecordingCanvas()->drawPatch(cubics, colors, texCoords, mode, paint); in onDrawPatch()

12