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

Unified Diff: src/core/SkLiteRecorder.cpp

Issue 2205273003: Add onDrawBitmapLattice(), avoid unnecessary bitmap->image copy (Closed) Base URL: https://skia.googlesource.com/skia.git@copypaste
Patch Set: Add support for SkLiteRecorder Created 4 years, 4 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/SkLiteRecorder.cpp
diff --git a/src/core/SkLiteRecorder.cpp b/src/core/SkLiteRecorder.cpp
index 6a8e1306c4621802ada9821fcfdd7a74d48f6377..b61dd8f582ccf191381802cc7648fcddb915280b 100644
--- a/src/core/SkLiteRecorder.cpp
+++ b/src/core/SkLiteRecorder.cpp
@@ -122,6 +122,11 @@ void SkLiteRecorder::onDrawBitmapRect(const SkBitmap& bm,
const SkPaint* paint, SrcRectConstraint constraint) {
fDL->drawBitmapRect(bm, src, dst, paint, constraint);
}
+void SkLiteRecorder::onDrawBitmapLattice(const SkBitmap& bm,
+ const SkCanvas::Lattice& lattice, const SkRect& dst,
+ const SkPaint* paint) {
+ fDL->drawBitmapLattice(bm, lattice, dst, paint);
+}
void SkLiteRecorder::onDrawImage(const SkImage* img,
SkScalar x, SkScalar y,

Powered by Google App Engine
This is Rietveld 408576698