/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" 137 SkISize SkPatchUtils::GetLevelOfDetail(const SkPoint cubics[12], const SkMatrix* matrix) { 141 SkPatchUtils::getTopCubic(cubics, pts); 145 SkPatchUtils::getBottomCubic(cubics, pts); 149 SkPatchUtils::getLeftCubic(cubics, pts); 153 SkPatchUtils::getRightCubic(cubics, pts); 164 void SkPatchUtils::getTopCubic(const SkPoint cubics[12], SkPoint points[4]) { 171 void SkPatchUtils::getBottomCubic(const SkPoint cubics[12], SkPoint points[4]) { 178 void SkPatchUtils::getLeftCubic(const SkPoint cubics[12], SkPoint points[4]) { 185 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" 480 cubics[SkPatchUtils::kTopP0_CubicCtrlPts].fX, 481 cubics[SkPatchUtils::kTopP0_CubicCtrlPts].fY, 482 cubics[SkPatchUtils::kTopP3_CubicCtrlPts].fX, 483 cubics[SkPatchUtils::kTopP3_CubicCtrlPts].fY, 484 cubics[SkPatchUtils::kBottomP3_CubicCtrlPts].fX, 485 cubics[SkPatchUtils::kBottomP3_CubicCtrlPts].fY, 486 cubics[SkPatchUtils::kBottomP0_CubicCtrlPts].fX, 487 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); 92 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...] |
/frameworks/base/libs/hwui/ |
SkiaCanvasProxy.cpp | 20 #include <SkPatchUtils.h> 329 SkPatchUtils::VertexData data; 333 SkISize lod = SkPatchUtils::GetLevelOfDetail(cubics, &matrix); 337 if (SkPatchUtils::getVertexData(&data, cubics, colors, texCoords, lod.width(), lod.height())) {
|
/external/skia/src/core/ |
SkDevice.cpp | 14 #include "SkPatchUtils.h" 112 SkPatchUtils::VertexData data; 114 SkISize lod = SkPatchUtils::GetLevelOfDetail(cubics, draw.fMatrix); 118 if (SkPatchUtils::getVertexData(&data, cubics, colors, texCoords, lod.width(), lod.height())) {
|
SkRecorder.cpp | 8 #include "SkPatchUtils.h" 278 cubics ? this->copy(cubics, SkPatchUtils::kNumCtrlPts) : NULL, 279 colors ? this->copy(colors, SkPatchUtils::kNumCorners) : NULL, 280 texCoords ? this->copy(texCoords, SkPatchUtils::kNumCorners) : NULL,
|
SkPictureRecord.cpp | 11 #include "SkPatchUtils.h" 779 size_t size = 2 * kUInt32Size + SkPatchUtils::kNumCtrlPts * sizeof(SkPoint) + kUInt32Size; 783 size += SkPatchUtils::kNumCorners * sizeof(SkColor); 787 size += SkPatchUtils::kNumCorners * sizeof(SkPoint); 805 fWriter.write(colors, SkPatchUtils::kNumCorners * sizeof(SkColor)); 808 fWriter.write(texCoords, SkPatchUtils::kNumCorners * sizeof(SkPoint)); [all...] |
SkPicturePlayback.cpp | 9 #include "SkPatchUtils.h" 229 const SkPoint* cubics = (const SkPoint*)reader->skip(SkPatchUtils::kNumCtrlPts * 234 colors = (const SkColor*)reader->skip(SkPatchUtils::kNumCorners * sizeof(SkColor)); 238 texCoords = (const SkPoint*)reader->skip(SkPatchUtils::kNumCorners *
|
SkRecordDraw.cpp | 10 #include "SkPatchUtils.h" 453 dst.set(op.cubics, SkPatchUtils::kNumCtrlPts);
|
SkCanvas.cpp | 21 #include "SkPatchUtils.h" [all...] |
/external/skia/src/pipe/ |
SkGPipeWrite.cpp | 22 #include "SkPatchUtils.h" [all...] |
SkGPipeRead.cpp | 24 #include "SkPatchUtils.h" 414 const SkPoint* cubics = skip<SkPoint>(reader, SkPatchUtils::kNumCtrlPts); 418 colors = skip<SkColor>(reader, SkPatchUtils::kNumCorners); 422 texCoords = skip<SkPoint>(reader, SkPatchUtils::kNumCorners);
|
/external/skia/ |
Android.mk | 418 src/utils/SkPatchUtils.cpp \
|