Home
last modified time | relevance | path

Searched refs:xDivs (Results 1 – 14 of 14) sorted by relevance

/external/skqp/gm/
Dlattice.cpp18 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/
Dlattice.cpp31 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/
DCanvas_drawBitmapLattice.cpp24 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/
DSkLatticeIter.cpp115 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()
DSkRecords.h265 PODArray<int> xDivs;
DSkRecordDraw.cpp114 lattice.fXDivs = r.xDivs; in draw()
/external/skqp/src/core/
DSkLatticeIter.cpp115 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()
DSkRecords.h243 PODArray<int> xDivs;
DSkRecordDraw.cpp107 lattice.fXDivs = r.xDivs; in draw()
/external/skia/bench/
DDrawLatticeBench.cpp16 DrawLatticeBench(int* xDivs, int xCount, int* yDivs, int yCount, const SkISize& srcSize, in DrawLatticeBench() argument
21 fLattice.fXDivs = xDivs; in DrawLatticeBench()
/external/skqp/bench/
DDrawLatticeBench.cpp16 DrawLatticeBench(int* xDivs, int xCount, int* yDivs, int yCount, const SkISize& srcSize, in DrawLatticeBench() argument
21 fLattice.fXDivs = xDivs; in DrawLatticeBench()
/external/skqp/fuzz/
DFuzzCanvas.cpp1436 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/
DFuzzCanvas.cpp1411 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/
DSkCanvas_Reference.bmh3785 const int xDivs[] = { center.fLeft, center.fRight };
3791 SkCanvas::Lattice lattice = { xDivs, yDivs, fillTypes[0], SK_ARRAY_COUNT(xDivs),