/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 | RecordingCanvas.cpp | 626 void DisplayListData::drawImageLattice(sk_sp<const SkImage> image, const SkCanvas::Lattice& lattice, in drawImageLattice() argument 629 int xs = lattice.fXCount, ys = lattice.fYCount; in drawImageLattice() 630 int fs = lattice.fRectTypes ? (xs + 1) * (ys + 1) : 0; in drawImageLattice() 633 SkASSERT(lattice.fBounds); in drawImageLattice() 634 void* pod = this->push<DrawImageLattice>(bytes, std::move(image), xs, ys, fs, *lattice.fBounds, in drawImageLattice() 636 copy_v(pod, lattice.fXDivs, xs, lattice.fYDivs, ys, lattice.fColors, fs, lattice.fRectTypes, in drawImageLattice() 902 void RecordingCanvas::onDrawBitmapLattice(const SkBitmap& bm, const SkCanvas::Lattice& lattice, in onDrawBitmapLattice() argument 904 fDL->drawImageLattice(SkImage::MakeFromBitmap(bm), lattice, dst, paint, BitmapPalette::Unknown); in onDrawBitmapLattice() 918 void RecordingCanvas::drawImageLattice(const sk_sp<SkImage>& image, const Lattice& lattice, in drawImageLattice() argument 926 Lattice latticePlusBounds = lattice; in drawImageLattice() [all …]
|
D | SkiaCanvas.cpp | 658 SkCanvas::Lattice lattice; in drawNinePatch() local 659 NinePatchUtils::SetLatticeDivs(&lattice, chunk, bitmap.width(), bitmap.height()); in drawNinePatch() 661 lattice.fRectTypes = nullptr; in drawNinePatch() 662 lattice.fColors = 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() 673 NinePatchUtils::SetLatticeFlags(&lattice, flags.get(), numFlags, chunk, colors.get()); in drawNinePatch() 676 lattice.fBounds = nullptr; in drawNinePatch() 679 mCanvas->drawImageLattice(bitmap.makeImage().get(), lattice, dst, filterPaint(paint)); in drawNinePatch()
|
D | RecordingCanvas.h | 188 void drawImageLattice(const sk_sp<SkImage>& image, const Lattice& lattice, const SkRect& dst,
|
/frameworks/base/core/jni/android/graphics/ |
D | NinePatch.cpp | 97 SkCanvas::Lattice lattice; in getTransparentRegion() local 99 lattice.fBounds = &src; in getTransparentRegion() 100 NinePatchUtils::SetLatticeDivs(&lattice, *chunk, bitmap.width(), bitmap.height()); in getTransparentRegion() 101 lattice.fRectTypes = nullptr; in getTransparentRegion() 102 lattice.fColors = nullptr; in getTransparentRegion() 105 if (SkLatticeIter::Valid(bitmap.width(), bitmap.height(), lattice)) { in getTransparentRegion() 106 SkLatticeIter iter(lattice, dst); in getTransparentRegion()
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | SkiaRecordingCanvas.cpp | 228 SkCanvas::Lattice lattice; in drawNinePatch() local 229 NinePatchUtils::SetLatticeDivs(&lattice, chunk, bitmap.width(), bitmap.height()); in drawNinePatch() 231 lattice.fRectTypes = nullptr; in drawNinePatch() 232 lattice.fColors = nullptr; in drawNinePatch() 234 if (chunk.numColors > 0 && chunk.numColors == NinePatchUtils::NumDistinctRects(lattice)) { in drawNinePatch() 237 numFlags = (lattice.fXCount + 1) * (lattice.fYCount + 1); in drawNinePatch() 243 NinePatchUtils::SetLatticeFlags(&lattice, flags.get(), numFlags, chunk, colors.get()); in drawNinePatch() 246 lattice.fBounds = nullptr; in drawNinePatch() 255 mRecorder.drawImageLattice(image, lattice, dst, filterBitmap(std::move(filteredPaint)), 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
|