/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 | 693 SkCanvas::Lattice lattice; in drawNinePatch() local 694 NinePatchUtils::SetLatticeDivs(&lattice, chunk, bitmap.width(), bitmap.height()); in drawNinePatch() 696 lattice.fRectTypes = nullptr; in drawNinePatch() 697 lattice.fColors = nullptr; in drawNinePatch() 699 if (chunk.numColors > 0 && chunk.numColors == NinePatchUtils::NumDistinctRects(lattice)) { in drawNinePatch() 702 numFlags = (lattice.fXCount + 1) * (lattice.fYCount + 1); in drawNinePatch() 708 NinePatchUtils::SetLatticeFlags(&lattice, flags.get(), numFlags, chunk, colors.get()); in drawNinePatch() 711 lattice.fBounds = nullptr; in drawNinePatch() 715 mCanvas->drawImageLattice(image.get(), lattice, dst, &p); in drawNinePatch()
|
D | RecordingCanvas.cpp | 660 void DisplayListData::drawImageLattice(sk_sp<const SkImage> image, const SkCanvas::Lattice& lattice, in drawImageLattice() argument 663 int xs = lattice.fXCount, ys = lattice.fYCount; in drawImageLattice() 664 int fs = lattice.fRectTypes ? (xs + 1) * (ys + 1) : 0; in drawImageLattice() 667 SkASSERT(lattice.fBounds); in drawImageLattice() 668 void* pod = this->push<DrawImageLattice>(bytes, std::move(image), xs, ys, fs, *lattice.fBounds, in drawImageLattice() 670 copy_v(pod, lattice.fXDivs, xs, lattice.fYDivs, ys, lattice.fColors, fs, lattice.fRectTypes, in drawImageLattice() 945 void RecordingCanvas::onDrawBitmapLattice(const SkBitmap& bm, const SkCanvas::Lattice& lattice, in onDrawBitmapLattice() argument 947 fDL->drawImageLattice(SkImage::MakeFromBitmap(bm), lattice, dst, paint, BitmapPalette::Unknown); in onDrawBitmapLattice() 961 void RecordingCanvas::drawImageLattice(const sk_sp<SkImage>& image, const Lattice& lattice, in drawImageLattice() argument 969 Lattice latticePlusBounds = lattice; in drawImageLattice() [all …]
|
D | RecordingCanvas.h | 197 void drawImageLattice(const sk_sp<SkImage>& image, const Lattice& lattice, const SkRect& dst,
|
/frameworks/base/libs/hwui/jni/ |
D | NinePatch.cpp | 95 SkCanvas::Lattice lattice; in getTransparentRegion() local 97 lattice.fBounds = &src; in getTransparentRegion() 98 NinePatchUtils::SetLatticeDivs(&lattice, *chunk, bitmap.width(), bitmap.height()); in getTransparentRegion() 99 lattice.fRectTypes = nullptr; in getTransparentRegion() 100 lattice.fColors = nullptr; in getTransparentRegion() 103 if (SkLatticeIter::Valid(bitmap.width(), bitmap.height(), lattice)) { in getTransparentRegion() 104 SkLatticeIter iter(lattice, dst); in getTransparentRegion()
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | SkiaRecordingCanvas.cpp | 276 SkCanvas::Lattice lattice; in drawNinePatch() local 277 NinePatchUtils::SetLatticeDivs(&lattice, chunk, bitmap.width(), bitmap.height()); in drawNinePatch() 279 lattice.fRectTypes = nullptr; in drawNinePatch() 280 lattice.fColors = nullptr; in drawNinePatch() 282 if (chunk.numColors > 0 && chunk.numColors == NinePatchUtils::NumDistinctRects(lattice)) { in drawNinePatch() 285 numFlags = (lattice.fXCount + 1) * (lattice.fYCount + 1); in drawNinePatch() 291 NinePatchUtils::SetLatticeFlags(&lattice, flags.get(), numFlags, chunk, colors.get()); in drawNinePatch() 294 lattice.fBounds = nullptr; in drawNinePatch() 305 mRecorder.drawImageLattice(image, lattice, dst.makeOffset(x, y), &p, bitmap.palette()); in drawNinePatch()
|
D | DumpOpsCanvas.h | 103 void onDrawImageLattice(const SkImage*, const Lattice& lattice, const SkRect& dst, in onDrawImageLattice() argument
|
/frameworks/base/libs/hwui/tests/unit/ |
D | FatalTestCanvas.h | 80 void onDrawImageLattice(const SkImage*, const Lattice& lattice, const SkRect& dst, in onDrawImageLattice() argument 95 void onDrawBitmapLattice(const SkBitmap&, const Lattice& lattice, const SkRect& dst, in onDrawBitmapLattice() argument
|