Home
last modified time | relevance | path

Searched refs:SkPatchUtils (Results 1 - 11 of 11) sorted by relevance

/third_party/skia/gm/
H A Dpatch.cpp22 #include "src/utils/SkPatchUtils.h"
39 SkPoint bottom[SkPatchUtils::kNumPtsCubic]; in draw_control_points()
40 SkPatchUtils::GetBottomCubic(cubics, bottom); in draw_control_points()
41 SkPoint top[SkPatchUtils::kNumPtsCubic]; in draw_control_points()
42 SkPatchUtils::GetTopCubic(cubics, top); in draw_control_points()
43 SkPoint left[SkPatchUtils::kNumPtsCubic]; in draw_control_points()
44 SkPatchUtils::GetLeftCubic(cubics, left); in draw_control_points()
45 SkPoint right[SkPatchUtils::kNumPtsCubic]; in draw_control_points()
46 SkPatchUtils::GetRightCubic(cubics, right); in draw_control_points()
80 const SkPoint gCubics[SkPatchUtils
[all...]
H A Dimagefiltersbase.cpp31 #include "src/utils/SkPatchUtils.h"
164 static constexpr SkPoint gCubics[SkPatchUtils::kNumCtrlPts] = { in draw_patch()
175 static constexpr SkColor colors[SkPatchUtils::kNumCorners] = { in draw_patch()
/third_party/skia/src/utils/
H A DSkPatchUtils.cpp8 #include "src/utils/SkPatchUtils.h"
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()
200 void SkPatchUtils::GetBottomCubic(const SkPoint cubics[12], SkPoint points[4]) { in GetBottomCubic()
207 void SkPatchUtils::GetLeftCubic(const SkPoint cubics[12], SkPoint points[4]) { in GetLeftCubic()
214 void SkPatchUtils
[all...]
H A DSkPatchUtils.h17 class SkPatchUtils { class
/third_party/skia/bench/
H A DPatchBench.cpp13 #include "src/utils/SkPatchUtils.h"
45 const SkPoint points[SkPatchUtils::kNumCtrlPts] = { in setCubics()
55 memcpy(fCubics, points, SkPatchUtils::kNumCtrlPts * sizeof(SkPoint)); in setCubics()
59 const SkColor colors[SkPatchUtils::kNumCorners] = { in setColors()
62 memcpy(fColors, colors, SkPatchUtils::kNumCorners * sizeof(SkColor)); in setColors()
66 const SkPoint texCoords[SkPatchUtils::kNumCorners] = { in setTexCoords()
69 memcpy(fTexCoords, texCoords, SkPatchUtils::kNumCorners * sizeof(SkPoint)); in setTexCoords()
169 const SkPoint points[SkPatchUtils::kNumCtrlPts] = {
179 memcpy(fCubics, points, SkPatchUtils::kNumCtrlPts * sizeof(SkPoint));
195 const SkPoint points[SkPatchUtils
[all...]
/third_party/skia/src/core/
H A DSkRecorder.cpp17 #include "src/utils/SkPatchUtils.h"
262 cubics ? this->copy(cubics, SkPatchUtils::kNumCtrlPts) : nullptr, in onDrawPatch()
263 colors ? this->copy(colors, SkPatchUtils::kNumCorners) : nullptr, in onDrawPatch()
264 texCoords ? this->copy(texCoords, SkPatchUtils::kNumCorners) : nullptr, in onDrawPatch()
H A DSkPictureRecord.cpp20 #include "src/utils/SkPatchUtils.h"
643 size_t size = 2 * kUInt32Size + SkPatchUtils::kNumCtrlPts * sizeof(SkPoint) + kUInt32Size; in onDrawPatch()
647 size += SkPatchUtils::kNumCorners * sizeof(SkColor); in onDrawPatch()
651 size += SkPatchUtils::kNumCorners * sizeof(SkPoint); in onDrawPatch()
665 fWriter.write(colors, SkPatchUtils::kNumCorners * sizeof(SkColor)); in onDrawPatch()
668 fWriter.write(texCoords, SkPatchUtils::kNumCorners * sizeof(SkPoint)); in onDrawPatch()
864 fWriter.write(cubics, SkPatchUtils::kNumCtrlPts * sizeof(SkPoint)); in addPatch()
H A DSkPicturePlayback.cpp24 #include "src/utils/SkPatchUtils.h"
503 const SkPoint* cubics = (const SkPoint*)reader->skip(SkPatchUtils::kNumCtrlPts, in handleOp()
508 colors = (const SkColor*)reader->skip(SkPatchUtils::kNumCorners, sizeof(SkColor)); in handleOp()
512 texCoords = (const SkPoint*)reader->skip(SkPatchUtils::kNumCorners, in handleOp()
H A DSkDevice.cpp35 #include "src/utils/SkPatchUtils.h"
163 SkISize lod = SkPatchUtils::GetLevelOfDetail(cubics, &this->localToDevice()); in drawPatch()
164 auto vertices = SkPatchUtils::MakeVertices(cubics, colors, texCoords, lod.width(), lod.height(), in drawPatch()
H A DSkRecordDraw.cpp14 #include "src/utils/SkPatchUtils.h"
439 dst.setBounds(op.cubics, SkPatchUtils::kNumCtrlPts); in bounds()
H A DSkCanvas.cpp50 #include "src/utils/SkPatchUtils.h"
2455 bounds.setBounds(cubics, SkPatchUtils::kNumCtrlPts);

Completed in 13 milliseconds