HomeSort by relevance Sort by last modified time
    Searched refs:SkPatchUtils (Results 1 - 17 of 17) sorted by null

  /external/skia/src/utils/
SkPatchGrid.cpp 9 #include "SkPatchUtils.h"
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];
52 fHrzCtrlPts[hrzPos + (fCols * 2) + 1] = cubics[SkPatchUtils::kBottomP2_CubicCtrlPts];
56 fVrtCtrlPts[vrtPos] = cubics[SkPatchUtils::kLeftP1_CubicCtrlPts]
    [all...]
SkPatchUtils.cpp 8 #include "SkPatchUtils.h"
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]) {
151 void SkPatchUtils::getBottomCubic(const SkPoint cubics[12], SkPoint points[4]) {
158 void SkPatchUtils::getLeftCubic(const SkPoint cubics[12], SkPoint points[4]) {
165 void SkPatchUtils::getRightCubic(const SkPoint cubics[12], SkPoint points[4])
    [all...]
SkPatchUtils.h 14 class SK_API SkPatchUtils {
116 static bool getVertexData(SkPatchUtils::VertexData* data, const SkPoint cubics[12],
SkDumpCanvas.cpp 12 #include "SkPatchUtils.h"
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,
  /external/skia/gm/
patch.cpp 11 #include "SkPatchUtils.h"
27 SkPoint bottom[SkPatchUtils::kNumPtsCubic];
28 SkPatchUtils::getBottomCubic(cubics, bottom);
29 SkPoint top[SkPatchUtils::kNumPtsCubic];
30 SkPatchUtils::getTopCubic(cubics, top);
31 SkPoint left[SkPatchUtils::kNumPtsCubic];
32 SkPatchUtils::getLeftCubic(cubics, left);
33 SkPoint right[SkPatchUtils::kNumPtsCubic];
34 SkPatchUtils::getRightCubic(cubics, right);
71 const SkPoint cubics[SkPatchUtils::kNumCtrlPts] =
    [all...]
patchgrid.cpp 16 SkPatchUtils::getBottomCubic(cubics, bottom);
18 SkPatchUtils::getTopCubic(cubics, top);
20 SkPatchUtils::getLeftCubic(cubics, left);
22 SkPatchUtils::getRightCubic(cubics, right);
119 points[SkPatchUtils::kTopP0_CubicCtrlPts] = vertices[i][j];
120 points[SkPatchUtils::kTopP3_CubicCtrlPts] = vertices[i][j + 1];
121 points[SkPatchUtils::kBottomP0_CubicCtrlPts] = vertices[i + 1][j];
122 points[SkPatchUtils::kBottomP3_CubicCtrlPts] = vertices[i + 1][j + 1];
124 points[SkPatchUtils::kTopP1_CubicCtrlPts] = hrzCtrl[i][j * 2];
125 points[SkPatchUtils::kTopP2_CubicCtrlPts] = hrzCtrl[i][j * 2 + 1]
    [all...]
  /external/skia/bench/
PatchGridBench.cpp 105 points[SkPatchUtils::kTopP0_CubicCtrlPts] = vertices[i][j];
106 points[SkPatchUtils::kTopP3_CubicCtrlPts] = vertices[i][j + 1];
107 points[SkPatchUtils::kBottomP0_CubicCtrlPts] = vertices[i + 1][j];
108 points[SkPatchUtils::kBottomP3_CubicCtrlPts] = vertices[i + 1][j + 1];
110 points[SkPatchUtils::kTopP1_CubicCtrlPts] = hrzCtrl[i][j * 2];
111 points[SkPatchUtils::kTopP2_CubicCtrlPts] = hrzCtrl[i][j * 2 + 1];
112 points[SkPatchUtils::kBottomP1_CubicCtrlPts] = hrzCtrl[i + 1][j * 2];
113 points[SkPatchUtils::kBottomP2_CubicCtrlPts] = hrzCtrl[i + 1][j * 2 + 1];
115 points[SkPatchUtils::kLeftP1_CubicCtrlPts] = vrtCtrl[i * 2][j];
116 points[SkPatchUtils::kLeftP2_CubicCtrlPts] = vrtCtrl[i * 2 + 1][j]
    [all...]
PatchBench.cpp 11 #include "SkPatchUtils.h"
44 const SkPoint points[SkPatchUtils::kNumCtrlPts] = {
54 memcpy(fCubics, points, SkPatchUtils::kNumCtrlPts * sizeof(SkPoint));
58 const SkColor colors[SkPatchUtils::kNumCorners] = {
61 memcpy(fColors, colors, SkPatchUtils::kNumCorners * sizeof(SkColor));
65 const SkPoint texCoords[SkPatchUtils::kNumCorners] = {
68 memcpy(fTexCoords, texCoords, SkPatchUtils::kNumCorners * sizeof(SkPoint));
169 const SkPoint points[SkPatchUtils::kNumCtrlPts] = {
179 memcpy(fCubics, points, SkPatchUtils::kNumCtrlPts * sizeof(SkPoint));
195 const SkPoint points[SkPatchUtils::kNumCtrlPts] =
    [all...]
  /external/skia/samplecode/
PerlinPatch.cpp 12 #include "SkPatchUtils.h"
18 SkPoint bottom[SkPatchUtils::kNumPtsCubic];
19 SkPatchUtils::getBottomCubic(cubics, bottom);
20 SkPoint top[SkPatchUtils::kNumPtsCubic];
21 SkPatchUtils::getTopCubic(cubics, top);
22 SkPoint left[SkPatchUtils::kNumPtsCubic];
23 SkPatchUtils::getLeftCubic(cubics, left);
24 SkPoint right[SkPatchUtils::kNumPtsCubic];
25 SkPatchUtils::getRightCubic(cubics, right);
69 SkPoint fPts[SkPatchUtils::kNumCtrlPts]
    [all...]
  /external/skia/src/core/
SkRecorder.cpp 10 #include "SkPatchUtils.h"
316 cubics ? this->copy(cubics, SkPatchUtils::kNumCtrlPts) : nullptr,
317 colors ? this->copy(colors, SkPatchUtils::kNumCorners) : nullptr,
318 texCoords ? this->copy(texCoords, SkPatchUtils::kNumCorners) : nullptr,
SkPictureRecord.cpp 11 #include "SkPatchUtils.h"
707 size_t size = 2 * kUInt32Size + SkPatchUtils::kNumCtrlPts * sizeof(SkPoint) + kUInt32Size;
711 size += SkPatchUtils::kNumCorners * sizeof(SkColor);
715 size += SkPatchUtils::kNumCorners * sizeof(SkPoint);
732 fWriter.write(colors, SkPatchUtils::kNumCorners * sizeof(SkColor));
735 fWriter.write(texCoords, SkPatchUtils::kNumCorners * sizeof(SkPoint));
896 fWriter.write(cubics, SkPatchUtils::kNumCtrlPts * sizeof(SkPoint));
    [all...]
SkDevice.cpp 15 #include "SkPatchUtils.h"
89 SkPatchUtils::VertexData data;
91 SkISize lod = SkPatchUtils::GetLevelOfDetail(cubics, draw.fMatrix);
95 if (SkPatchUtils::getVertexData(&data, cubics, colors, texCoords, lod.width(), lod.height())) {
SkPicturePlayback.cpp 9 #include "SkPatchUtils.h"
293 const SkPoint* cubics = (const SkPoint*)reader->skip(SkPatchUtils::kNumCtrlPts *
298 colors = (const SkColor*)reader->skip(SkPatchUtils::kNumCorners * sizeof(SkColor));
302 texCoords = (const SkPoint*)reader->skip(SkPatchUtils::kNumCorners *
SkRecordDraw.cpp 10 #include "SkPatchUtils.h"
445 dst.set(op.cubics, SkPatchUtils::kNumCtrlPts);
SkCanvas.cpp 25 #include "SkPatchUtils.h"
    [all...]
  /frameworks/base/libs/hwui/
SkiaCanvasProxy.cpp 20 #include <SkPatchUtils.h>
365 SkPatchUtils::VertexData data;
369 SkISize lod = SkPatchUtils::GetLevelOfDetail(cubics, &matrix);
373 if (SkPatchUtils::getVertexData(&data, cubics, colors, texCoords, lod.width(), lod.height())) {
  /external/skia/
Android.mk 644 src/utils/SkPatchUtils.cpp \

Completed in 3166 milliseconds