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

Unified Diff: src/pdf/SkPDFCanvas.h

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/pdf/SkPDFCanvas.h
diff --git a/src/pdf/SkPDFCanvas.h b/src/pdf/SkPDFCanvas.h
index 76bb7e13e385e438a64d9d9c0da35eb5d9e50d2b..5040e9817d700459a64b14fc196a1c5285db14e5 100644
--- a/src/pdf/SkPDFCanvas.h
+++ b/src/pdf/SkPDFCanvas.h
@@ -40,10 +40,15 @@ protected:
SkCanvas::SrcRectConstraint) override;
void onDrawImageLattice(const SkImage*,
- const Lattice& lattice,
- const SkRect& dst,
+ const Lattice&,
+ const SkRect&,
const SkPaint*) override;
+ void onDrawBitmapLattice(const SkBitmap&,
+ const Lattice&,
+ const SkRect&,
+ const SkPaint*) override;
+
private:
typedef SkCanvas INHERITED;
};

Powered by Google App Engine
This is Rietveld 408576698