/third_party/skia/src/utils/ |
D | SkPatchUtils.cpp | 163 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 …]
|
D | SkPatchUtils.h | 30 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],
|
D | SkPaintFilterCanvas.cpp | 153 void SkPaintFilterCanvas::onDrawPatch(const SkPoint cubics[], const SkColor colors[], in onDrawPatch() argument 158 this->SkNWayCanvas::onDrawPatch(cubics, colors, texCoords, bmode, apf.paint()); in onDrawPatch()
|
D | SkNWayCanvas.cpp | 326 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/ |
D | Canvas_drawPatch_2_a.cpp | 10 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);
|
D | Canvas_drawPatch_2_b.cpp | 10 SkPoint cubics[] = { { 3, 1 }, { 4, 2 }, { 5, 1 }, { 7, 3 }, in draw() local 17 canvas->drawPatch(cubics, nullptr, texCoords, paint); in draw()
|
D | Canvas_drawPatch.cpp | 10 SkPoint cubics[] = { { 3, 1 }, { 4, 2 }, { 5, 1 }, { 7, 3 }, in draw() local 19 canvas->drawPatch(cubics, colors, texCoords, blend, paint); in draw()
|
D | draw_patch.cpp | 15 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/ |
D | PuckerBloat.cpp | 58 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/ |
D | patch.cpp | 36 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()
|
D | bicubic.cpp | 42 SkImage::CubicResampler cubics[] = { variable 46 for (auto c : cubics) {
|
D | runtimecolorfilter.cpp | 136 const SkPoint cubics[12] = { variable 185 canvas->drawPatch(cubics, nullptr, pos, paint); in __anon101948970502()
|
/third_party/skia/src/core/ |
D | SkPictureRecord.h | 132 void addPatch(const SkPoint cubics[12]); 177 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
|
D | SkOverdrawCanvas.cpp | 94 void SkOverdrawCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch() 97 fList[0]->onDrawPatch(cubics, colors, texCoords, blendMode, fPaint); in onDrawPatch()
|
D | SkRecorder.cpp | 258 void SkRecorder::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch() 262 cubics ? this->copy(cubics, SkPatchUtils::kNumCtrlPts) : nullptr, in onDrawPatch()
|
D | SkDevice.cpp | 161 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()
|
D | SkPictureRecord.cpp | 639 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()
|
D | SkRecorder.h | 77 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
|
/third_party/skia/include/core/ |
D | SkCanvasVirtualEnforcer.h | 37 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
|
D | SkCanvas.h | 2015 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/ |
D | SkPaintFilterCanvas.h | 71 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
|
D | SkNWayCanvas.h | 43 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
|
/third_party/skia/modules/canvaskit/npm_build/types/ |
D | canvaskit-wasm-tests.ts | 130 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/ |
D | DebugCanvas.h | 156 void onDrawPatch(const SkPoint cubics[12],
|
/third_party/skia/tools/ |
D | MSKPPlayer.cpp | 179 void onDrawPatch(const SkPoint cubics[12], in onDrawPatch() 184 fRecorder.getRecordingCanvas()->drawPatch(cubics, colors, texCoords, mode, paint); in onDrawPatch()
|