Home
last modified time | relevance | path

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

123

/external/skia/src/utils/
DSkPatchUtils.cpp161 SkISize SkPatchUtils::GetLevelOfDetail(const SkPoint cubics[12], const SkMatrix* matrix) { in GetLevelOfDetail()
164 SkPatchUtils::GetTopCubic(cubics, pts); in GetLevelOfDetail()
168 SkPatchUtils::GetBottomCubic(cubics, pts); in GetLevelOfDetail()
172 SkPatchUtils::GetLeftCubic(cubics, pts); in GetLevelOfDetail()
176 SkPatchUtils::GetRightCubic(cubics, pts); in GetLevelOfDetail()
191 void SkPatchUtils::GetTopCubic(const SkPoint cubics[12], SkPoint points[4]) { in GetTopCubic()
192 points[0] = cubics[kTopP0_CubicCtrlPts]; in GetTopCubic()
193 points[1] = cubics[kTopP1_CubicCtrlPts]; in GetTopCubic()
194 points[2] = cubics[kTopP2_CubicCtrlPts]; in GetTopCubic()
195 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.cpp214 void SkPaintFilterCanvas::onDrawPatch(const SkPoint cubics[], const SkColor colors[], in onDrawPatch() argument
219 this->SkNWayCanvas::onDrawPatch(cubics, colors, texCoords, bmode, *apf.paint()); in onDrawPatch()
/external/skqp/src/utils/
DSkPatchUtils.cpp161 SkISize SkPatchUtils::GetLevelOfDetail(const SkPoint cubics[12], const SkMatrix* matrix) { in GetLevelOfDetail()
164 SkPatchUtils::GetTopCubic(cubics, pts); in GetLevelOfDetail()
168 SkPatchUtils::GetBottomCubic(cubics, pts); in GetLevelOfDetail()
172 SkPatchUtils::GetLeftCubic(cubics, pts); in GetLevelOfDetail()
176 SkPatchUtils::GetRightCubic(cubics, pts); in GetLevelOfDetail()
191 void SkPatchUtils::GetTopCubic(const SkPoint cubics[12], SkPoint points[4]) { in GetTopCubic()
192 points[0] = cubics[kTopP0_CubicCtrlPts]; in GetTopCubic()
193 points[1] = cubics[kTopP1_CubicCtrlPts]; in GetTopCubic()
194 points[2] = cubics[kTopP2_CubicCtrlPts]; in GetTopCubic()
195 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.cpp207 void SkPaintFilterCanvas::onDrawPatch(const SkPoint cubics[], const SkColor colors[], in onDrawPatch() argument
212 this->SkNWayCanvas::onDrawPatch(cubics, colors, texCoords, bmode, *apf.paint()); in onDrawPatch()
DSkNWayCanvas.cpp319 void SkNWayCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch()
324 iter->drawPatch(cubics, colors, texCoords, bmode, paint); in onDrawPatch()
/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/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/skqp/src/core/
DSkDevice.cpp141 void SkBaseDevice::drawPatch(const SkPoint cubics[12], const SkColor colors[4], in drawPatch()
143 SkISize lod = SkPatchUtils::GetLevelOfDetail(cubics, &this->ctm()); in drawPatch()
144 auto vertices = SkPatchUtils::MakeVertices(cubics, colors, texCoords, lod.width(), lod.height(), in drawPatch()
DSkRecorder.cpp296 void SkRecorder::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch()
300 cubics ? this->copy(cubics, SkPatchUtils::kNumCtrlPts) : nullptr, in onDrawPatch()
DSkPictureRecord.h130 void addPatch(const SkPoint cubics[12]);
171 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
DSkLiteRecorder.cpp155 void SkLiteRecorder::onDrawPatch(const SkPoint cubics[12], in onDrawPatch()
158 fDL->drawPatch(cubics, colors, texCoords, bmode, paint); in onDrawPatch()
DSkOverdrawCanvas.cpp102 void SkOverdrawCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch()
105 fList[0]->onDrawPatch(cubics, colors, texCoords, blendMode, fPaint); in onDrawPatch()
DSkLiteDL.cpp381 DrawPatch(const SkPoint cubics[12], const SkColor colors[4], const SkPoint texs[4], in DrawPatch()
385 copy_v(this->cubics, cubics, 12); in DrawPatch()
389 SkPoint cubics[12]; member
397 c->drawPatch(cubics, has_colors ? colors : nullptr, has_texs ? texs : nullptr, in draw()
DSkPictureRecord.cpp664 void SkPictureRecord::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch()
685 this->addPatch(cubics); in onDrawPatch()
826 void SkPictureRecord::addPatch(const SkPoint cubics[12]) { in addPatch()
827 fWriter.write(cubics, SkPatchUtils::kNumCtrlPts * sizeof(SkPoint)); in addPatch()
/external/skia/src/core/
DSkDevice.cpp141 void SkBaseDevice::drawPatch(const SkPoint cubics[12], const SkColor colors[4], in drawPatch()
143 SkISize lod = SkPatchUtils::GetLevelOfDetail(cubics, &this->ctm()); in drawPatch()
144 auto vertices = SkPatchUtils::MakeVertices(cubics, colors, texCoords, lod.width(), lod.height(), in drawPatch()
DSkLiteRecorder.cpp158 void SkLiteRecorder::onDrawPatch(const SkPoint cubics[12], in onDrawPatch()
161 fDL->drawPatch(cubics, colors, texCoords, bmode, paint); in onDrawPatch()
DSkPictureRecord.h130 void addPatch(const SkPoint cubics[12]);
171 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
DSkRecorder.cpp300 void SkRecorder::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch()
304 cubics ? this->copy(cubics, SkPatchUtils::kNumCtrlPts) : nullptr, in onDrawPatch()
DSkOverdrawCanvas.cpp102 void SkOverdrawCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch()
105 fList[0]->onDrawPatch(cubics, colors, texCoords, blendMode, fPaint); in onDrawPatch()
DSkLiteDL.cpp387 DrawPatch(const SkPoint cubics[12], const SkColor colors[4], const SkPoint texs[4], in DrawPatch()
391 copy_v(this->cubics, cubics, 12); in DrawPatch()
395 SkPoint cubics[12]; member
403 c->drawPatch(cubics, has_colors ? colors : nullptr, has_texs ? texs : nullptr, in draw()
DSkPictureRecord.cpp673 void SkPictureRecord::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], in onDrawPatch()
694 this->addPatch(cubics); in onDrawPatch()
835 void SkPictureRecord::addPatch(const SkPoint cubics[12]) { in addPatch()
836 fWriter.write(cubics, SkPatchUtils::kNumCtrlPts * sizeof(SkPoint)); in addPatch()

123