Index: include/core/SkCanvas.h |
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h |
index 3b8f17c53edd82cb1412ccb2054f2c1c62f06020..aa72c5585fde5d1f710c1ffaefd4575b909d8d84 100644 |
--- a/include/core/SkCanvas.h |
+++ b/include/core/SkCanvas.h |
@@ -33,6 +33,7 @@ class SkPicture; |
class SkRRect; |
class SkSurface; |
class SkSurface_Base; |
+class SkTextBlob; |
class GrContext; |
class GrRenderTarget; |
@@ -956,6 +957,8 @@ public: |
const SkPath& path, const SkMatrix* matrix, |
const SkPaint& paint); |
+ void drawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, const SkPaint& paint); |
+ |
/** PRIVATE / EXPERIMENTAL -- do not call |
Perform back-end analysis/optimization of a picture. This may attach |
optimization data to the picture which can be used by a later |
@@ -1232,6 +1235,9 @@ protected: |
const SkPath& path, const SkMatrix* matrix, |
const SkPaint& paint); |
+ virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, |
+ const SkPaint& paint); |
+ |
virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], |
const SkPoint texCoords[4], SkXfermode* xmode, const SkPaint& paint); |