HomeSort by relevance Sort by last modified time
    Searched refs:cubics (Results 1 - 25 of 36) sorted by null

1 2

  /external/skia/src/utils/
SkPatchGrid.cpp 32 bool SkPatchGrid::setPatch(int x, int y, const SkPoint cubics[12], const SkColor colors[4],
35 // pointer for the cubics' control points.
36 if (x < 0 || y < 0 || x > fCols - 1 || y > fRows - 1 || nullptr == cubics) {
42 fCornerPts[cornerPos] = cubics[SkPatchUtils::kTopP0_CubicCtrlPts];
43 fCornerPts[cornerPos + 1] = cubics[SkPatchUtils::kTopP3_CubicCtrlPts];
44 fCornerPts[cornerPos + (fCols + 1)] = cubics[SkPatchUtils::kBottomP0_CubicCtrlPts];
45 fCornerPts[cornerPos + (fCols + 1) + 1] = cubics[SkPatchUtils::kBottomP3_CubicCtrlPts];
49 fHrzCtrlPts[hrzPos] = cubics[SkPatchUtils::kTopP1_CubicCtrlPts];
50 fHrzCtrlPts[hrzPos + 1] = cubics[SkPatchUtils::kTopP2_CubicCtrlPts];
51 fHrzCtrlPts[hrzPos + (fCols * 2)] = cubics[SkPatchUtils::kBottomP1_CubicCtrlPts]
161 SkPoint cubics[12]; local
172 SkPoint cubics[12]; local
    [all...]
SkPatchUtils.h 85 static SkISize GetLevelOfDetail(const SkPoint cubics[12], const SkMatrix* matrix);
88 * Get the points corresponding to the top cubic of cubics.
90 static void getTopCubic(const SkPoint cubics[12], SkPoint points[4]);
93 * Get the points corresponding to the bottom cubic of cubics.
95 static void getBottomCubic(const SkPoint cubics[12], SkPoint points[4]);
98 * Get the points corresponding to the left cubic of cubics.
100 static void getLeftCubic(const SkPoint cubics[12], SkPoint points[4]);
103 * Get the points corresponding to the right cubic of cubics.
105 static void getRightCubic(const SkPoint cubics[12], SkPoint points[4]);
110 * cubics refers to the points of the cubics
    [all...]
SkPatchUtils.cpp 117 SkISize SkPatchUtils::GetLevelOfDetail(const SkPoint cubics[12], const SkMatrix* matrix) {
121 SkPatchUtils::getTopCubic(cubics, pts);
125 SkPatchUtils::getBottomCubic(cubics, pts);
129 SkPatchUtils::getLeftCubic(cubics, pts);
133 SkPatchUtils::getRightCubic(cubics, pts);
144 void SkPatchUtils::getTopCubic(const SkPoint cubics[12], SkPoint points[4]) {
145 points[0] = cubics[kTopP0_CubicCtrlPts];
146 points[1] = cubics[kTopP1_CubicCtrlPts];
147 points[2] = cubics[kTopP2_CubicCtrlPts];
148 points[3] = cubics[kTopP3_CubicCtrlPts]
    [all...]
SkPatchGrid.h 102 bool setPatch(int x, int y, const SkPoint cubics[12], const SkColor colors[4],
106 * Get patch at location (x,y). If cubics, colors or texCoords is not nullptr it sets patch's
108 * The function returns false if the cubics parameter is nullptr or if the (x,y) coordinates are
111 bool getPatch(int x, int y, SkPoint cubics[12], SkColor colors[4], SkPoint texCoords[4]) const;
SkDumpCanvas.cpp 465 void SkDumpCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
472 cubics[SkPatchUtils::kTopP0_CubicCtrlPts].fX,
473 cubics[SkPatchUtils::kTopP0_CubicCtrlPts].fY,
474 cubics[SkPatchUtils::kTopP3_CubicCtrlPts].fX,
475 cubics[SkPatchUtils::kTopP3_CubicCtrlPts].fY,
476 cubics[SkPatchUtils::kBottomP3_CubicCtrlPts].fX,
477 cubics[SkPatchUtils::kBottomP3_CubicCtrlPts].fY,
478 cubics[SkPatchUtils::kBottomP0_CubicCtrlPts].fX,
479 cubics[SkPatchUtils::kBottomP0_CubicCtrlPts].fY,
SkNWayCanvas.cpp 286 void SkNWayCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
291 iter->drawPatch(cubics, colors, texCoords, xmode, paint);
SkPaintFilterCanvas.cpp 158 void SkPaintFilterCanvas::onDrawPatch(const SkPoint cubics[], const SkColor colors[],
163 this->INHERITED::onDrawPatch(cubics, colors, texCoords, xmode, *apf.paint());
  /external/skia/gm/
patch.cpp 24 static void draw_control_points(SkCanvas* canvas, const SkPoint cubics[12]) {
28 SkPatchUtils::getBottomCubic(cubics, bottom);
30 SkPatchUtils::getTopCubic(cubics, top);
32 SkPatchUtils::getLeftCubic(cubics, left);
34 SkPatchUtils::getRightCubic(cubics, right);
71 const SkPoint cubics[SkPatchUtils::kNumCtrlPts] = { local
106 canvas->drawPatch(cubics, nullptr, nullptr, xfer, paint);
109 canvas->drawPatch(cubics, colors, nullptr, xfer, paint);
113 canvas->drawPatch(cubics, nullptr, texCoords, xfer, paint);
118 canvas->drawPatch(cubics, colors, texCoords, xfer, paint)
    [all...]
patchgrid.cpp 12 static void draw_control_points(SkCanvas* canvas, const SkPoint cubics[12]) {
16 SkPatchUtils::getBottomCubic(cubics, bottom);
18 SkPatchUtils::getTopCubic(cubics, top);
20 SkPatchUtils::getLeftCubic(cubics, left);
22 SkPatchUtils::getRightCubic(cubics, right);
148 SkPoint cubics[12]; variable
149 grid.getPatch(x, y, cubics, nullptr, nullptr);
150 draw_control_points(canvas, cubics);
  /external/skia/samplecode/
PerlinPatch.cpp 15 static void draw_control_points(SkCanvas* canvas, const SkPoint cubics[12]) {
19 SkPatchUtils::getBottomCubic(cubics, bottom);
21 SkPatchUtils::getTopCubic(cubics, top);
23 SkPatchUtils::getLeftCubic(cubics, left);
25 SkPatchUtils::getRightCubic(cubics, right);
  /external/skia/include/utils/
SkNWayCanvas.h 52 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
SkPaintFilterCanvas.h 85 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
SkDumpCanvas.h 93 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
  /frameworks/base/libs/hwui/
SkiaCanvasProxy.h 87 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
SkiaCanvasProxy.cpp 360 void SkiaCanvasProxy::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
369 SkISize lod = SkPatchUtils::GetLevelOfDetail(cubics, &matrix);
373 if (SkPatchUtils::getVertexData(&data, cubics, colors, texCoords, lod.width(), lod.height())) {
  /external/skia/src/core/
SkPictureRecord.h 131 void addPatch(const SkPoint cubics[12]);
173 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
SkRecorder.cpp 313 void SkRecorder::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
316 cubics ? this->copy(cubics, SkPatchUtils::kNumCtrlPts) : nullptr,
SkDevice.cpp 87 void SkBaseDevice::drawPatch(const SkDraw& draw, const SkPoint cubics[12], const SkColor colors[4],
91 SkISize lod = SkPatchUtils::GetLevelOfDetail(cubics, draw.fMatrix);
95 if (SkPatchUtils::getVertexData(&data, cubics, colors, texCoords, lod.width(), lod.height())) {
SkPictureRecord.cpp 703 void SkPictureRecord::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
727 this->addPatch(cubics);
895 void SkPictureRecord::addPatch(const SkPoint cubics[12]) {
896 fWriter.write(cubics, SkPatchUtils::kNumCtrlPts * sizeof(SkPoint));
    [all...]
SkRecorder.h 89 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
  /external/skia/tools/android/
SkAndroidSDKCanvas.h 68 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
SkAndroidSDKCanvas.cpp 216 void SkAndroidSDKCanvas::onDrawPatch(const SkPoint cubics[12],
222 fProxyTarget->drawPatch(cubics, colors, texCoords, xmode, filteredPaint);
  /external/skia/include/core/
SkDevice.h 248 virtual void drawPatch(const SkDraw&, const SkPoint cubics[12], const SkColor colors[4],
  /external/skia/tools/debugger/
SkDebugCanvas.h 200 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
  /external/skia/tools/json/
SkJSONCanvas.h 241 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],

Completed in 368 milliseconds

1 2