Searched refs:lattice (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/libs/hwui/ |
D | NinePatchUtils.h | 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 [all …]
|
D | SkiaCanvas.cpp | 659 SkCanvas::Lattice lattice; in drawNinePatch() local 660 NinePatchUtils::SetLatticeDivs(&lattice, chunk, bitmap.width(), bitmap.height()); in drawNinePatch() 662 lattice.fFlags = nullptr; in drawNinePatch() 664 if (chunk.numColors > 0 && chunk.numColors == NinePatchUtils::NumDistinctRects(lattice)) { in drawNinePatch() 667 numFlags = (lattice.fXCount + 1) * (lattice.fYCount + 1); in drawNinePatch() 672 NinePatchUtils::SetLatticeFlags(&lattice, flags.get(), numFlags, chunk); in drawNinePatch() 675 lattice.fBounds = nullptr; in drawNinePatch() 677 mCanvas->drawBitmapLattice(bitmap, lattice, dst, paint); in drawNinePatch()
|
D | SkiaCanvasProxy.h | 76 virtual void onDrawImageLattice(const SkImage*, const Lattice& lattice, const SkRect& dst,
|
D | SkiaCanvasProxy.cpp | 175 void SkiaCanvasProxy::onDrawImageLattice(const SkImage* image, const Lattice& lattice, in onDrawImageLattice() argument 177 SkLatticeIter iter(lattice, dst); in onDrawImageLattice()
|
/frameworks/base/core/jni/android/graphics/ |
D | NinePatch.cpp | 101 SkCanvas::Lattice lattice; in getTransparentRegion() local 103 lattice.fBounds = &src; in getTransparentRegion() 104 NinePatchUtils::SetLatticeDivs(&lattice, *chunk, bitmap.width(), bitmap.height()); in getTransparentRegion() 105 lattice.fFlags = nullptr; in getTransparentRegion() 108 if (SkLatticeIter::Valid(bitmap.width(), bitmap.height(), lattice)) { in getTransparentRegion() 109 SkLatticeIter iter(lattice, dst); in getTransparentRegion()
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | SkiaRecordingCanvas.cpp | 216 SkCanvas::Lattice lattice; in drawNinePatch() local 217 NinePatchUtils::SetLatticeDivs(&lattice, chunk, bitmap.width(), bitmap.height()); in drawNinePatch() 219 lattice.fFlags = nullptr; in drawNinePatch() 221 if (chunk.numColors > 0 && chunk.numColors == NinePatchUtils::NumDistinctRects(lattice)) { in drawNinePatch() 224 numFlags = (lattice.fXCount + 1) * (lattice.fYCount + 1); in drawNinePatch() 229 NinePatchUtils::SetLatticeFlags(&lattice, flags.get(), numFlags, chunk); in drawNinePatch() 232 lattice.fBounds = nullptr; in drawNinePatch() 240 mRecorder.drawImageLattice(image.get(), lattice, dst, nonAAPaint(paint, &tmpPaint)); in drawNinePatch()
|
D | DumpOpsCanvas.h | 128 void onDrawImageLattice(const SkImage*, const Lattice& lattice, const SkRect& dst, in onDrawImageLattice() argument
|
/frameworks/base/libs/hwui/tests/unit/ |
D | FatalTestCanvas.h | 103 void onDrawImageLattice(const SkImage*, const Lattice& lattice, const SkRect& dst, in onDrawImageLattice() argument 118 void onDrawBitmapLattice(const SkBitmap&, const Lattice& lattice, const SkRect& dst, in onDrawBitmapLattice() argument
|