Lines Matching refs:lattice
26 bool SkLatticeIter::Valid(int width, int height, const SkCanvas::Lattice& lattice) { in Valid() argument
28 SkASSERT(lattice.fBounds); in Valid()
29 const SkIRect latticeBounds = *lattice.fBounds; in Valid()
34 bool zeroXDivs = lattice.fXCount <= 0 || (1 == lattice.fXCount && in Valid()
35 latticeBounds.fLeft == lattice.fXDivs[0]); in Valid()
36 bool zeroYDivs = lattice.fYCount <= 0 || (1 == lattice.fYCount && in Valid()
37 latticeBounds.fTop == lattice.fYDivs[0]); in Valid()
42 return valid_divs(lattice.fXDivs, lattice.fXCount, latticeBounds.fLeft, latticeBounds.fRight) in Valid()
43 && valid_divs(lattice.fYDivs, lattice.fYCount, latticeBounds.fTop, latticeBounds.fBottom); in Valid()
114 SkLatticeIter::SkLatticeIter(const SkCanvas::Lattice& lattice, const SkRect& dst) { in SkLatticeIter() argument
115 const int* xDivs = lattice.fXDivs; in SkLatticeIter()
116 const int origXCount = lattice.fXCount; in SkLatticeIter()
117 const int* yDivs = lattice.fYDivs; in SkLatticeIter()
118 const int origYCount = lattice.fYCount; in SkLatticeIter()
119 SkASSERT(lattice.fBounds); in SkLatticeIter()
120 const SkIRect src = *lattice.fBounds; in SkLatticeIter()
168 if (lattice.fRectTypes) { in SkLatticeIter()
172 const SkCanvas::Lattice::RectType* flags = lattice.fRectTypes; in SkLatticeIter()
173 const SkColor* colors = lattice.fColors; in SkLatticeIter()