Index: src/core/SkLiteDL.cpp |
diff --git a/src/core/SkLiteDL.cpp b/src/core/SkLiteDL.cpp |
index d6498897706cd141482821cd84b45821e1ffa118..b8938ba771f5fc62a406d2cf0e13f05fe72b6e09 100644 |
--- a/src/core/SkLiteDL.cpp |
+++ b/src/core/SkLiteDL.cpp |
@@ -624,6 +624,15 @@ void SkLiteDL::drawBitmapRect(const SkBitmap& bm, const SkRect* src, const SkRec |
const SkPaint* paint, SkCanvas::SrcRectConstraint constraint) { |
this->push<DrawImageRect>(0, SkImage::MakeFromBitmap(bm), src, dst, paint, constraint); |
} |
+void SkLiteDL::drawBitmapLattice(const SkBitmap& bm, const SkCanvas::Lattice& lattice, |
+ const SkRect& dst, const SkPaint* paint) { |
+ int xs = lattice.fXCount, ys = lattice.fYCount; |
reed1
2016/08/16 11:28:47
minor nit: possibly just call drawImageLattice,so
mtklein
2016/08/16 12:36:05
That can be made correct but will wobble the ref c
msarett
2016/08/16 14:45:37
Will leave as is in this CL.
|
+ size_t bytes = (xs + ys) * sizeof(int); |
+ void* pod = this->push<DrawImageLattice>(bytes, SkImage::MakeFromBitmap(bm), xs, ys, dst, |
+ paint); |
+ copy_v(pod, lattice.fXDivs, xs, |
+ lattice.fYDivs, ys); |
+} |
void SkLiteDL::drawImage(const SkImage* image, SkScalar x, SkScalar y, const SkPaint* paint) { |
this->push<DrawImage>(0, sk_ref_sp(image), x,y, paint); |