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

Unified Diff: src/pipe/SkPipeCanvas.cpp

Issue 2382893002: Add a src rect to drawImageLattice() API (Closed)
Patch Set: Fix win Created 4 years, 3 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/pipe/SkPipeCanvas.cpp
diff --git a/src/pipe/SkPipeCanvas.cpp b/src/pipe/SkPipeCanvas.cpp
index 21b7267d74b72f47a9a719e64f3c33f3a0872311..bf52a4e5011da76d1610882a66a106bb41849afa 100644
--- a/src/pipe/SkPipeCanvas.cpp
+++ b/src/pipe/SkPipeCanvas.cpp
@@ -582,6 +582,7 @@ void SkPipeCanvas::onDrawImageLattice(const SkImage* image, const Lattice& latti
SkASSERT(count > 0);
write_pad(&writer, lattice.fFlags, count);
}
+ writer.write(&lattice.fBounds, sizeof(lattice.fBounds));
writer.write(&dst, sizeof(dst));
if (paint) {
write_paint(writer, *paint, kImage_PaintUsage);

Powered by Google App Engine
This is Rietveld 408576698