/third_party/flutter/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 …]
|
/third_party/skia/gm/ |
D | lattice.cpp | 32 static sk_sp<SkImage> make_image(SkCanvas* root, int* xDivs, int* yDivs, int padLeft, int padTop, in make_image() argument 46 xDivs[0] = kCap + padLeft; in make_image() 48 xDivs[1] = kCap + kMid + padLeft; in make_image() 50 xDivs[2] = kCap + 2 * kMid + padLeft; in make_image() 52 xDivs[3] = kCap + 3 * kMid + padLeft; in make_image() 111 int xDivs[5]; in onDrawHelper() local 113 xDivs[0] = padLeft; in onDrawHelper() 117 sk_sp<SkImage> image = make_image(canvas, xDivs + 1, yDivs + 1, padLeft, padTop, in onDrawHelper() 135 lattice.fXDivs = xDivs + 1; in onDrawHelper() 163 int srcX = xDivs[fixedColorX[rectNum]-1]; in onDrawHelper() [all …]
|
/third_party/flutter/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()
|
/third_party/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 | 250 PODArray<int> xDivs;
|
D | SkRecordDraw.cpp | 122 lattice.fXDivs = r.xDivs; in draw()
|
/third_party/flutter/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 | 249 PODArray<int> xDivs;
|
D | SkRecordDraw.cpp | 111 lattice.fXDivs = r.xDivs; in draw()
|
/third_party/flutter/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()
|
/third_party/flutter/skia/fuzz/ |
D | FuzzCanvas.cpp | 1412 int xDivs[kMax], yDivs[kMax]; in fuzz_canvas() local 1413 SkCanvas::Lattice lattice{xDivs, yDivs, nullptr, 0, 0, nullptr, nullptr}; in fuzz_canvas() 1416 fuzz->nextN(xDivs, lattice.fXCount); in fuzz_canvas() 1430 int xDivs[kMax], yDivs[kMax]; in fuzz_canvas() local 1431 SkCanvas::Lattice lattice{xDivs, yDivs, nullptr, 0, 0, nullptr, nullptr}; in fuzz_canvas() 1434 fuzz->nextN(xDivs, lattice.fXCount); in fuzz_canvas()
|
/third_party/skia/fuzz/ |
D | FuzzCanvas.cpp | 1317 int xDivs[kMax], yDivs[kMax]; in fuzz_canvas() local 1318 SkCanvas::Lattice lattice{xDivs, yDivs, nullptr, 0, 0, nullptr, nullptr}; in fuzz_canvas() 1321 fuzz->nextN(xDivs, lattice.fXCount); in fuzz_canvas()
|