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

Unified Diff: src/core/SkRecorder.cpp

Issue 473633002: SkTextBlob (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: More const API, minimal docs. Created 6 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/SkRecorder.cpp
diff --git a/src/core/SkRecorder.cpp b/src/core/SkRecorder.cpp
index 327a97acdbe3316b227cfe77b5a803ed3c57d1ff..c5efadce44f71d23a4c876b3f9d1dfea58404a3e 100644
--- a/src/core/SkRecorder.cpp
+++ b/src/core/SkRecorder.cpp
@@ -187,6 +187,11 @@ void SkRecorder::onDrawTextOnPath(const void* text, size_t byteLength, const SkP
this->copy(matrix));
}
+void SkRecorder::onDrawTextBlob(const SkTextBlob* blob, const SkPoint& offset,
+ const SkPaint& paint) {
+ APPEND(DrawTextBlob, delay_copy(paint), offset, blob);
+}
+
void SkRecorder::onDrawPicture(const SkPicture* pic, const SkMatrix* matrix, const SkPaint* paint) {
APPEND(DrawPicture, this->copy(paint), pic, this->copy(matrix));
}

Powered by Google App Engine
This is Rietveld 408576698