diff options
author | Mike Reed <reed@google.com> | 2018-03-15 13:37:08 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-03-15 18:14:16 +0000 |
commit | 9c2916e0c7e0a61c0f85384c736247d4fa6d3a7b (patch) | |
tree | b775ac6e26f52d884c444bceb931871e98742a22 /include | |
parent | bdea98cff19c186c1492af9461cd0e0f4ad90541 (diff) |
drawTextRSXform should not apply matrix to shader
drawTextRSXform should draw the same as drawTextOnPath (as regards shaders)
Bug: b/69904791
Change-Id: I393dd8fd7a5bdc6a018b1ca33592b208c7141868
Reviewed-on: https://skia-review.googlesource.com/114468
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Herb Derby <herb@google.com>
Reviewed-by: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkCanvas.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h index 8c86cd2f13..a426d1e546 100644 --- a/include/core/SkCanvas.h +++ b/include/core/SkCanvas.h @@ -2055,7 +2055,8 @@ public: using clip, SkMatrix, and SkPaint paint. SkRSXform array specifies a separate square scale, rotation, and translation for - each glyph. + each glyph. Note that this per-glyph xform does not affect the shader (if present) + on the paint, just the glyph's geometry. Optional SkRect cullRect is a conservative bounds of text, taking into account SkRSXform and paint. If cullRect is outside of clip, canvas can skip drawing. |