Chromium Code Reviews| Index: include/core/SkCanvas.h |
| diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h |
| index ec14829ca85296d12d79d27a04073c6ee587c20e..7dd018944198ed57c4464576b0e31143f562d249 100644 |
| --- a/include/core/SkCanvas.h |
| +++ b/include/core/SkCanvas.h |
| @@ -989,6 +989,14 @@ public: |
| void drawTextOnPath(const void* text, size_t byteLength, const SkPath& path, |
| const SkMatrix* matrix, const SkPaint& paint); |
| + /** |
| + * Draw the text with each character/glyph individually transformed by its xform. |
| + * If cullRect is not null, it is a conservative bounds of what will be drawn |
|
robertphillips
2016/07/07 20:59:11
stray ')' ?
reed1
2016/07/07 22:51:45
Done.
|
| + * taking into account the xforms and the paint) and will be used to accelerate culling. |
| + */ |
| + void drawTextRSXform(const void* text, size_t byteLength, const SkRSXform[], |
| + const SkRect* cullRect, const SkPaint& paint); |
| + |
| /** Draw the text blob, offset by (x,y), using the specified paint. |
| @param blob The text blob to be drawn |
| @param x The x-offset of the text being drawn |
| @@ -1324,6 +1332,8 @@ protected: |
| virtual void onDrawTextOnPath(const void* text, size_t byteLength, |
| const SkPath& path, const SkMatrix* matrix, |
| const SkPaint& paint); |
| + virtual void onDrawTextRSXform(const void* text, size_t byteLength, const SkRSXform[], |
| + const SkRect* cullRect, const SkPaint& paint); |
| virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, |
| const SkPaint& paint); |