Home
last modified time | relevance | path

Searched refs:yDivs (Results 1 – 12 of 12) sorted by relevance

/third_party/flutter/skia/gm/
Dlattice.cpp31 static sk_sp<SkImage> make_image(SkCanvas* root, int* xDivs, int* yDivs, int padLeft, int padTop, in make_image() argument
46 yDivs[0] = kCap + padTop; in make_image()
48 yDivs[1] = kCap + kMid + padTop; in make_image()
50 yDivs[2] = kCap + 2 * kMid + padTop; in make_image()
52 yDivs[3] = kCap + 3 * kMid + padTop; in make_image()
110 int yDivs[5]; in onDrawHelper() local
112 yDivs[0] = padTop; in onDrawHelper()
115 sk_sp<SkImage> image = make_image(canvas, xDivs + 1, yDivs + 1, padLeft, padTop, in onDrawHelper()
135 lattice.fYDivs = yDivs + 1; in onDrawHelper()
162 int srcY = yDivs[fixedColorY[rectNum]-1]; in onDrawHelper()
[all …]
/third_party/skia/gm/
Dlattice.cpp32 static sk_sp<SkImage> make_image(SkCanvas* root, int* xDivs, int* yDivs, int padLeft, int padTop, in make_image() argument
47 yDivs[0] = kCap + padTop; in make_image()
49 yDivs[1] = kCap + kMid + padTop; in make_image()
51 yDivs[2] = kCap + 2 * kMid + padTop; in make_image()
53 yDivs[3] = kCap + 3 * kMid + padTop; in make_image()
112 int yDivs[5]; in onDrawHelper() local
114 yDivs[0] = padTop; in onDrawHelper()
117 sk_sp<SkImage> image = make_image(canvas, xDivs + 1, yDivs + 1, padLeft, padTop, in onDrawHelper()
137 lattice.fYDivs = yDivs + 1; in onDrawHelper()
164 int srcY = yDivs[fixedColorY[rectNum]-1]; in onDrawHelper()
[all …]
/third_party/flutter/skia/docs/examples/
DCanvas_drawBitmapLattice.cpp25 const int yDivs[] = { center.fTop, center.fBottom }; in draw() local
30 SkCanvas::Lattice lattice = { xDivs, yDivs, fillTypes[0], SK_ARRAY_COUNT(xDivs), in draw()
31 SK_ARRAY_COUNT(yDivs), nullptr, dummy }; in draw()
/third_party/flutter/skia/src/core/
DSkLatticeIter.cpp117 const int* yDivs = lattice.fYDivs; in SkLatticeIter() local
140 bool yIsScalable = (yCount > 0 && src.fTop == yDivs[0]); in SkLatticeIter()
144 yDivs++; in SkLatticeIter()
151 int yCountScalable = count_scalable_pixels(yDivs, yCount, yIsScalable, src.fTop, src.fBottom); in SkLatticeIter()
161 set_points(fDstY.begin(), fSrcY.begin(), yDivs, yCount, yCountFixed, yCountScalable, in SkLatticeIter()
DSkRecords.h251 PODArray<int> yDivs;
DSkRecordDraw.cpp113 lattice.fYDivs = r.yDivs; in draw()
/third_party/skia/src/core/
DSkLatticeIter.cpp117 const int* yDivs = lattice.fYDivs; in SkLatticeIter() local
140 bool yIsScalable = (yCount > 0 && src.fTop == yDivs[0]); in SkLatticeIter()
144 yDivs++; in SkLatticeIter()
151 int yCountScalable = count_scalable_pixels(yDivs, yCount, yIsScalable, src.fTop, src.fBottom); in SkLatticeIter()
161 set_points(fDstY.begin(), fSrcY.begin(), yDivs, yCount, yCountFixed, yCountScalable, in SkLatticeIter()
DSkRecords.h252 PODArray<int> yDivs;
DSkRecordDraw.cpp124 lattice.fYDivs = r.yDivs; in draw()
/third_party/flutter/skia/bench/
DDrawLatticeBench.cpp16 DrawLatticeBench(int* xDivs, int xCount, int* yDivs, int yCount, const SkISize& srcSize, in DrawLatticeBench() argument
23 fLattice.fYDivs = yDivs; in DrawLatticeBench()
/third_party/flutter/skia/fuzz/
DFuzzCanvas.cpp1412 int xDivs[kMax], yDivs[kMax]; in fuzz_canvas() local
1413 SkCanvas::Lattice lattice{xDivs, yDivs, nullptr, 0, 0, nullptr, nullptr}; in fuzz_canvas()
1417 fuzz->nextN(yDivs, lattice.fYCount); 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()
1435 fuzz->nextN(yDivs, lattice.fYCount); in fuzz_canvas()
/third_party/skia/fuzz/
DFuzzCanvas.cpp1317 int xDivs[kMax], yDivs[kMax]; in fuzz_canvas() local
1318 SkCanvas::Lattice lattice{xDivs, yDivs, nullptr, 0, 0, nullptr, nullptr}; in fuzz_canvas()
1322 fuzz->nextN(yDivs, lattice.fYCount); in fuzz_canvas()