Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Unified Diff: src/core/SkRecorder.cpp

Issue 1992283002: Add drawBitmapLattice() API (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add implementation for SkRecorder and SkPictureRecord Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/core/SkRecorder.cpp
diff --git a/src/core/SkRecorder.cpp b/src/core/SkRecorder.cpp
index 19cb663eaf297c60c374ea42bcfb9b5d5bd4c7f7..89fce28a3757e56b10648c3d77b67631f42f89e4 100644
--- a/src/core/SkRecorder.cpp
+++ b/src/core/SkRecorder.cpp
@@ -226,6 +226,14 @@ void SkRecorder::onDrawBitmapNine(const SkBitmap& bitmap,
#endif
}
+void SkRecorder::onDrawBitmapNine(const SkBitmap& bitmap,
+ const NinePatchDivs& divs,
+ const SkRect& dst,
+ const SkPaint* paint) {
+ APPEND(DrawBitmapNineDivs, this->copy(paint), bitmap,
+ ((const SkNinePatchDivs&) divs).asData(), dst);
+}
+
void SkRecorder::onDrawImage(const SkImage* image, SkScalar left, SkScalar top,
const SkPaint* paint) {
APPEND(DrawImage, this->copy(paint), image, left, top);
« include/core/SkCanvas.h ('K') | « src/core/SkRecorder.h ('k') | tests/PictureTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698