• Home
  • Raw
  • Download

Lines Matching refs:lattice

22 static inline void SetLatticeDivs(SkCanvas::Lattice* lattice, const Res_png_9patch& chunk,  in SetLatticeDivs()  argument
24 lattice->fXCount = chunk.numXDivs; in SetLatticeDivs()
25 lattice->fYCount = chunk.numYDivs; in SetLatticeDivs()
26 lattice->fXDivs = chunk.getXDivs(); in SetLatticeDivs()
27 lattice->fYDivs = chunk.getYDivs(); in SetLatticeDivs()
31 if (lattice->fXCount > 0 && width == lattice->fXDivs[lattice->fXCount - 1]) { in SetLatticeDivs()
32 lattice->fXCount--; in SetLatticeDivs()
34 if (lattice->fYCount > 0 && height == lattice->fYDivs[lattice->fYCount - 1]) { in SetLatticeDivs()
35 lattice->fYCount--; in SetLatticeDivs()
39 static inline int NumDistinctRects(const SkCanvas::Lattice& lattice) { in NumDistinctRects() argument
41 if (lattice.fXCount > 0) { in NumDistinctRects()
42 xRects = (0 == lattice.fXDivs[0]) ? lattice.fXCount : lattice.fXCount + 1; in NumDistinctRects()
48 if (lattice.fYCount > 0) { in NumDistinctRects()
49 yRects = (0 == lattice.fYDivs[0]) ? lattice.fYCount : lattice.fYCount + 1; in NumDistinctRects()
56 static inline void SetLatticeFlags(SkCanvas::Lattice* lattice, SkCanvas::Lattice::RectType* flags, in SetLatticeFlags() argument
58 lattice->fRectTypes = flags; in SetLatticeFlags()
59 lattice->fColors = colors; in SetLatticeFlags()
63 bool needPadRow = lattice->fYCount > 0 && 0 == lattice->fYDivs[0]; in SetLatticeFlags()
64 bool needPadCol = lattice->fXCount > 0 && 0 == lattice->fXDivs[0]; in SetLatticeFlags()
66 int yCount = lattice->fYCount; in SetLatticeFlags()
69 flags += lattice->fXCount + 1; in SetLatticeFlags()
70 colors += lattice->fXCount + 1; in SetLatticeFlags()
77 for (int x = 0; x < lattice->fXCount + 1; x++) { in SetLatticeFlags()
101 lattice->fRectTypes = nullptr; in SetLatticeFlags()
102 lattice->fColors = nullptr; in SetLatticeFlags()