Home | History | Annotate | Download | only in ops

Lines Matching refs:lattice

199     // Rules for lattice divs: Must be strictly increasing and in the range
232 SkCanvas::Lattice lattice;
234 // We loop because our random lattice code can produce an invalid lattice in the case where
239 std::unique_ptr<SkCanvas::Lattice::Flags[]> flags;
252 // SkCanvas::Lattice allows bounds to be null. However, SkCanvas creates a temp Lattice with a
254 lattice.fBounds = &subset;
255 lattice.fXCount = random->nextRangeU(1, subset.width());
256 lattice.fYCount = random->nextRangeU(1, subset.height());
257 xdivs.reset(new int[lattice.fXCount]);
258 ydivs.reset(new int[lattice.fYCount]);
259 init_random_divs(xdivs.get(), lattice.fXCount, subset.fLeft, subset.fRight, random);
260 init_random_divs(ydivs.get(), lattice.fYCount, subset.fTop, subset.fBottom, random);
261 lattice.fXDivs = xdivs.get();
262 lattice.fYDivs = ydivs.get();
265 int n = (lattice.fXCount + 1) * (lattice.fYCount + 1);
266 flags.reset(new SkCanvas::Lattice::Flags[n]);
268 flags[i] = random->nextBool() ? SkCanvas::Lattice::kTransparent_Flags
269 : (SkCanvas::Lattice::Flags)0;
271 lattice.fFlags = flags.get();
273 lattice.fFlags = nullptr;
275 } while (!SkLatticeIter::Valid(imgW, imgH, lattice));
282 std::unique_ptr<SkLatticeIter> iter(new SkLatticeIter(lattice, dst));