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

Unified Diff: src/core/SkRecorder.cpp

Issue 1181913003: add SkCanvas::drawAtlas (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add virtuals for device and picture Created 5 years, 6 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 0989132cd2eb5ff7839e440b9b79d5549a67568d..7344c10e307ea27fbb31beaedda0091a27f08dfd 100644
--- a/src/core/SkRecorder.cpp
+++ b/src/core/SkRecorder.cpp
@@ -299,6 +299,18 @@ void SkRecorder::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
xmode);
}
+void SkRecorder::onDrawAtlas(const SkImage* atlas, const SkRSXform xform[], const SkRect tex[],
+ const SkColor colors[], int count, const SkRect* cull,
+ const SkPaint* paint) {
+ APPEND(DrawAtlas, this->copy(paint),
+ atlas,
+ this->copy(xform, count),
+ this->copy(tex, count),
+ colors ? this->copy(colors, count) : NULL,
mtklein 2015/06/15 20:45:40 This is fine, but copy does this check internally
reed1 2015/06/15 20:59:18 Ah, ok. I was trying to copy the pattern above on
+ count,
+ this->copy(cull));
+}
+
void SkRecorder::willSave() {
APPEND(Save);
}
« src/core/SkRecordDraw.cpp ('K') | « src/core/SkRecorder.h ('k') | src/core/SkRecords.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698