/external/skqp/gm/ |
D | lattice.cpp | 18 static sk_sp<SkImage> make_image(SkCanvas* root, int* xDivs, int* yDivs, int padLeft, int padTop, in make_image() argument 32 xDivs[0] = kCap + padLeft; in make_image() 34 xDivs[1] = kCap + kMid + padLeft; in make_image() 36 xDivs[2] = kCap + 2 * kMid + padLeft; in make_image() 38 xDivs[3] = kCap + 3 * kMid + padLeft; in make_image() 96 int xDivs[5]; in onDrawHelper() local 98 xDivs[0] = padLeft; in onDrawHelper() 102 sk_sp<SkImage> image = make_image(canvas, xDivs + 1, yDivs + 1, padLeft, padTop, in onDrawHelper() 120 lattice.fXDivs = xDivs + 1; in onDrawHelper() 148 int srcX = xDivs[fixedColorX[rectNum]-1]; in onDrawHelper() [all …]
|
/external/skia/gm/ |
D | lattice.cpp | 31 static sk_sp<SkImage> make_image(SkCanvas* root, int* xDivs, int* yDivs, int padLeft, int padTop, in make_image() argument 45 xDivs[0] = kCap + padLeft; in make_image() 47 xDivs[1] = kCap + kMid + padLeft; in make_image() 49 xDivs[2] = kCap + 2 * kMid + padLeft; in make_image() 51 xDivs[3] = kCap + 3 * kMid + padLeft; in make_image() 109 int xDivs[5]; in onDrawHelper() local 111 xDivs[0] = padLeft; in onDrawHelper() 115 sk_sp<SkImage> image = make_image(canvas, xDivs + 1, yDivs + 1, padLeft, padTop, in onDrawHelper() 133 lattice.fXDivs = xDivs + 1; in onDrawHelper() 161 int srcX = xDivs[fixedColorX[rectNum]-1]; in onDrawHelper() [all …]
|
/external/skia/docs/examples/ |
D | Canvas_drawBitmapLattice.cpp | 24 const int xDivs[] = { center.fLeft, center.fRight }; in draw() local 30 SkCanvas::Lattice lattice = { xDivs, yDivs, fillTypes[0], SK_ARRAY_COUNT(xDivs), in draw()
|
/external/skia/src/core/ |
D | SkLatticeIter.cpp | 115 const int* xDivs = lattice.fXDivs; in SkLatticeIter() local 133 bool xIsScalable = (xCount > 0 && src.fLeft == xDivs[0]); in SkLatticeIter() 137 xDivs++; in SkLatticeIter() 149 int xCountScalable = count_scalable_pixels(xDivs, xCount, xIsScalable, src.fLeft, src.fRight); in SkLatticeIter() 156 set_points(fDstX.begin(), fSrcX.begin(), xDivs, xCount, xCountFixed, xCountScalable, in SkLatticeIter()
|
D | SkRecords.h | 265 PODArray<int> xDivs;
|
D | SkRecordDraw.cpp | 114 lattice.fXDivs = r.xDivs; in draw()
|
/external/skqp/src/core/ |
D | SkLatticeIter.cpp | 115 const int* xDivs = lattice.fXDivs; in SkLatticeIter() local 133 bool xIsScalable = (xCount > 0 && src.fLeft == xDivs[0]); in SkLatticeIter() 137 xDivs++; in SkLatticeIter() 149 int xCountScalable = count_scalable_pixels(xDivs, xCount, xIsScalable, src.fLeft, src.fRight); in SkLatticeIter() 156 set_points(fDstX.begin(), fSrcX.begin(), xDivs, xCount, xCountFixed, xCountScalable, in SkLatticeIter()
|
D | SkRecords.h | 243 PODArray<int> xDivs;
|
D | SkRecordDraw.cpp | 107 lattice.fXDivs = r.xDivs; in draw()
|
/external/skia/bench/ |
D | DrawLatticeBench.cpp | 16 DrawLatticeBench(int* xDivs, int xCount, int* yDivs, int yCount, const SkISize& srcSize, in DrawLatticeBench() argument 21 fLattice.fXDivs = xDivs; in DrawLatticeBench()
|
/external/skqp/bench/ |
D | DrawLatticeBench.cpp | 16 DrawLatticeBench(int* xDivs, int xCount, int* yDivs, int yCount, const SkISize& srcSize, in DrawLatticeBench() argument 21 fLattice.fXDivs = xDivs; in DrawLatticeBench()
|
/external/skqp/fuzz/ |
D | FuzzCanvas.cpp | 1436 int xDivs[kMax], yDivs[kMax]; in fuzz_canvas() local 1437 SkCanvas::Lattice lattice{xDivs, yDivs, nullptr, 0, 0, nullptr, nullptr}; in fuzz_canvas() 1440 fuzz->nextN(xDivs, lattice.fXCount); in fuzz_canvas() 1454 int xDivs[kMax], yDivs[kMax]; in fuzz_canvas() local 1455 SkCanvas::Lattice lattice{xDivs, yDivs, nullptr, 0, 0, nullptr, nullptr}; in fuzz_canvas() 1458 fuzz->nextN(xDivs, lattice.fXCount); in fuzz_canvas()
|
/external/skia/fuzz/ |
D | FuzzCanvas.cpp | 1411 int xDivs[kMax], yDivs[kMax]; in fuzz_canvas() local 1412 SkCanvas::Lattice lattice{xDivs, yDivs, nullptr, 0, 0, nullptr, nullptr}; in fuzz_canvas() 1415 fuzz->nextN(xDivs, lattice.fXCount); in fuzz_canvas() 1429 int xDivs[kMax], yDivs[kMax]; in fuzz_canvas() local 1430 SkCanvas::Lattice lattice{xDivs, yDivs, nullptr, 0, 0, nullptr, nullptr}; in fuzz_canvas() 1433 fuzz->nextN(xDivs, lattice.fXCount); in fuzz_canvas()
|
/external/skqp/docs/ |
D | SkCanvas_Reference.bmh | 3785 const int xDivs[] = { center.fLeft, center.fRight }; 3791 SkCanvas::Lattice lattice = { xDivs, yDivs, fillTypes[0], SK_ARRAY_COUNT(xDivs),
|