/external/skia/src/utils/ |
H A D | SkPatchGrid.cpp | 32 bool SkPatchGrid::setPatch(int x, int y, const SkPoint cubics[12], const SkColor colors[4], argument 35 // pointer for the cubics' control points. 36 if (x < 0 || y < 0 || x > fCols - 1 || y > fRows - 1 || NULL == 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[SkPatchUtil 79 getPatch(int x, int y, SkPoint cubics[12], SkColor colors[4], SkPoint texCoords[4]) const argument 161 SkPoint cubics[12]; local 172 SkPoint cubics[12]; local [all...] |
H A D | 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 refer [all...] |
H A D | SkPatchUtils.cpp | 137 SkISize SkPatchUtils::GetLevelOfDetail(const SkPoint cubics[12], const SkMatrix* matrix) { argument 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]) { argument 165 points[0] = cubics[kTopP0_CubicCtrlPts]; 166 points[1] = cubics[kTopP1_CubicCtrlPts]; 167 points[2] = cubics[kTopP2_CubicCtrlPts]; 168 points[3] = cubics[kTopP3_CubicCtrlPt 171 getBottomCubic(const SkPoint cubics[12], SkPoint points[4]) argument 178 getLeftCubic(const SkPoint cubics[12], SkPoint points[4]) argument 185 getRightCubic(const SkPoint cubics[12], SkPoint points[4]) argument 192 getVertexData(SkPatchUtils::VertexData* data, const SkPoint cubics[12], const SkColor colors[4], const SkPoint texCoords[4], int lodX, int lodY) argument [all...] |
H A D | 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 NULL it sets patch's 108 * The function returns false if the cubics parameter is NULL or if the (x,y) coordinates are 111 bool getPatch(int x, int y, SkPoint cubics[12], SkColor colors[4], SkPoint texCoords[4]) const;
|
H A D | SkDumpCanvas.cpp | 473 void SkDumpCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], argument 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,
|
H A D | SkPaintFilterCanvas.cpp | 116 void SkPaintFilterCanvas::onDrawPatch(const SkPoint cubics[], const SkColor colors[], argument 120 this->INHERITED::onDrawPatch(cubics, colors, texCoords, xmode, *apf.paint());
|
H A D | SkNWayCanvas.cpp | 295 void SkNWayCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], argument 300 iter->drawPatch(cubics, colors, texCoords, xmode, paint);
|
H A D | SkDeferredCanvas.cpp | 247 void drawPatch(const SkDraw&, const SkPoint cubics[12], const SkColor colors[4], 977 void SkDeferredCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], argument 981 this->drawingCanvas()->drawPatch(cubics, colors, texCoords, xmode, paint);
|
/external/skia/gm/ |
H A D | patch.cpp | 24 static void draw_control_points(SkCanvas* canvas, const SkPoint cubics[12]) { argument 28 SkPatchUtils::getBottomCubic(cubics, bottom); 30 SkPatchUtils::getTopCubic(cubics, top); 32 SkPatchUtils::getLeftCubic(cubics, left); 34 SkPatchUtils::getRightCubic(cubics, right); 69 * This GM draws a cubics coons patch using the specialized call SkCanvas::drawPatch. 92 const SkPoint cubics[SkPatchUtils::kNumCtrlPts] = { variable 127 canvas->drawPatch(cubics, NULL, NULL, xfer, paint); 130 canvas->drawPatch(cubics, colors, NULL, xfer, paint); 134 canvas->drawPatch(cubics, NUL [all...] |
H A D | patchgrid.cpp | 12 static void draw_control_points(SkCanvas* canvas, const SkPoint cubics[12]) { argument 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, NULL, NULL); 150 draw_control_points(canvas, cubics);
|
/external/skia/include/utils/ |
H A D | SkPaintFilterCanvas.h | 71 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
|
H A D | SkDeferredCanvas.h | 167 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
|
H A D | SkDumpCanvas.h | 101 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
|
H A D | SkNWayCanvas.h | 53 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
|
/external/skia/src/core/ |
H A D | SkDevice.cpp | 110 void SkBaseDevice::drawPatch(const SkDraw& draw, const SkPoint cubics[12], const SkColor colors[4], argument 114 SkISize lod = SkPatchUtils::GetLevelOfDetail(cubics, draw.fMatrix); 118 if (SkPatchUtils::getVertexData(&data, cubics, colors, texCoords, lod.width(), lod.height())) {
|
H A D | SkRecorder.cpp | 275 void SkRecorder::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], argument 278 cubics ? this->copy(cubics, SkPatchUtils::kNumCtrlPts) : NULL,
|
H A D | SkRecorder.h | 85 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
|
H A D | SkPictureRecord.h | 128 void addPatch(const SkPoint cubics[12]); 174 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
|
H A D | SkPictureRecord.cpp | 775 void SkPictureRecord::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], argument 800 this->addPatch(cubics); 946 void SkPictureRecord::addPatch(const SkPoint cubics[12]) { argument 947 fWriter.write(cubics, SkPatchUtils::kNumCtrlPts * sizeof(SkPoint));
|
H A D | SkPicturePlayback.cpp | 229 const SkPoint* cubics = (const SkPoint*)reader->skip(SkPatchUtils::kNumCtrlPts * local 249 canvas->drawPatch(cubics, colors, texCoords, xfer, paint);
|
H A D | SkCanvas.cpp | 2387 void SkCanvas::drawPatch(const SkPoint cubics[12], const SkColor colors[4], argument 2390 if (NULL == cubics) { 2397 bounds.set(cubics, SkPatchUtils::kNumCtrlPts); 2402 this->onDrawPatch(cubics, colors, texCoords, xmode, paint); 2405 void SkCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], argument 2411 iter.fDevice->drawPatch(iter, cubics, colors, texCoords, xmode, paint);
|
/external/skia/src/utils/android/ |
H A D | SkAndroidSDKCanvas.h | 70 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
|
H A D | SkAndroidSDKCanvas.cpp | 221 void SkAndroidSDKCanvas::onDrawPatch(const SkPoint cubics[12], argument 227 fProxyTarget->drawPatch(cubics, colors, texCoords, xmode, filteredPaint);
|
/external/skia/include/core/ |
H A D | SkDevice.h | 234 virtual void drawPatch(const SkDraw&, const SkPoint cubics[12], const SkColor colors[4],
|
/external/skia/src/utils/debugger/ |
H A D | SkDebugCanvas.h | 189 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
|