/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); 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, NULL, 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, NULL, NULL); 150 draw_control_points(canvas, cubics);
|
/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 || 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[SkPatchUtils::kBottomP1_CubicCtrlPts] 161 SkPoint cubics[12]; local 172 SkPoint cubics[12]; local [all...] |
SkLua.cpp | 542 SkPoint cubics[12]; local 549 getarray_points(L, 2, cubics, 12); 563 get_ref<SkCanvas>(L, 1)->drawPatch(cubics, colors, texs, NULL, *get_obj<SkPaint>(L, 5)); [all...] |
/external/skia/src/core/ |
SkPicturePlayback.cpp | 229 const SkPoint* cubics = (const SkPoint*)reader->skip(SkPatchUtils::kNumCtrlPts * local 249 canvas->drawPatch(cubics, colors, texCoords, xfer, paint);
|