diff options
author | reed <reed@google.com> | 2014-08-26 11:30:01 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-08-26 11:30:01 -0700 |
commit | 99ae881a7f55a03c2b16fb5704e6e90ea86d965d (patch) | |
tree | 63c37173411d0347f262c8aa20975ca67baa2592 /include | |
parent | 1790e25e1829ed4091fb149764425df7a3c9c0e0 (diff) |
remove (unused) scale parameter from measureText
BUG=skia:
R=bungeman@google.com, djsollen@google.com
Author: reed@google.com
Review URL: https://codereview.chromium.org/510433002
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkPaint.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h index 4d5c54ef58..af5978d7b3 100644 --- a/include/core/SkPaint.h +++ b/include/core/SkPaint.h @@ -862,12 +862,9 @@ public: * @param length Number of bytes of text to measure * @param bounds If not NULL, returns the bounds of the text, * relative to (0, 0). - * @param scale If not 0, return width as if the canvas were scaled - * by this value * @return The advance width of the text */ - SkScalar measureText(const void* text, size_t length, - SkRect* bounds, SkScalar scale = 0) const; + SkScalar measureText(const void* text, size_t length, SkRect* bounds) const; /** Return the width of the text. This will return the vertical measure * if isVerticalText() is true, in which case the returned value should @@ -878,7 +875,7 @@ public: * @return The advance width of the text */ SkScalar measureText(const void* text, size_t length) const { - return this->measureText(text, length, NULL, 0); + return this->measureText(text, length, NULL); } /** Specify the direction the text buffer should be processed in breakText() |