Home | History | Annotate | Download | only in hwui

Lines Matching refs:lattice

639     SkCanvas::Lattice lattice;
640 NinePatchUtils::SetLatticeDivs(&lattice, chunk, hwuiBitmap.width(), hwuiBitmap.height());
642 lattice.fFlags = nullptr;
644 if (chunk.numColors > 0 && chunk.numColors == NinePatchUtils::NumDistinctRects(lattice)) {
647 numFlags = (lattice.fXCount + 1) * (lattice.fYCount + 1);
650 SkAutoSTMalloc<25, SkCanvas::Lattice::Flags> flags(numFlags);
652 NinePatchUtils::SetLatticeFlags(&lattice, flags.get(), numFlags, chunk);
655 lattice.fBounds = nullptr;
657 mCanvas->drawImageLattice(hwuiBitmap.makeImage().get(), lattice, dst, paint);