diff options
author | 2018-05-18 16:59:13 -0400 | |
---|---|---|
committer | 2018-05-20 18:18:06 +0000 | |
commit | 78a764860bddd4ac8a18db87aaf21fb00a636166 (patch) | |
tree | 9ae07529b8f56406fa5890827782b592895245a0 /tools/debugger/SkDebugCanvas.cpp | |
parent | da17f1e7df1d12798cc19bf7a751123b67bbba82 (diff) |
Add drawBitmapLattice to SkDebugCanvas
One more step to full coverage of SkCanvas API. (Also, it would be nice
to implement fromJSON for both lattice types, I'll attempt that in a
follow up CL).
Change-Id: I5fe55ca90b7859e40f5e8ec83bc12b7938674b60
Reviewed-on: https://skia-review.googlesource.com/129245
Reviewed-by: Joe Gregorio <jcgregorio@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'tools/debugger/SkDebugCanvas.cpp')
-rw-r--r-- | tools/debugger/SkDebugCanvas.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/debugger/SkDebugCanvas.cpp b/tools/debugger/SkDebugCanvas.cpp index 67f4bd3dc9..cf813b90d7 100644 --- a/tools/debugger/SkDebugCanvas.cpp +++ b/tools/debugger/SkDebugCanvas.cpp @@ -343,6 +343,11 @@ void SkDebugCanvas::onDrawBitmap(const SkBitmap& bitmap, SkScalar left, this->addDrawCommand(new SkDrawBitmapCommand(bitmap, left, top, paint)); } +void SkDebugCanvas::onDrawBitmapLattice(const SkBitmap& bitmap, const Lattice& lattice, + const SkRect& dst, const SkPaint* paint) { + this->addDrawCommand(new SkDrawBitmapLatticeCommand(bitmap, lattice, dst, paint)); +} + void SkDebugCanvas::onDrawBitmapRect(const SkBitmap& bitmap, const SkRect* src, const SkRect& dst, const SkPaint* paint, SrcRectConstraint constraint) { this->addDrawCommand(new SkDrawBitmapRectCommand(bitmap, src, dst, paint, |