diff options
author | benjaminwagner <benjaminwagner@google.com> | 2016-02-16 10:09:40 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-16 10:09:40 -0800 |
commit | 8e17556349132a46c02fbabcaf74b63f521528e0 (patch) | |
tree | bafcbb7188ab624191337a4f636eb55f1d80aa68 /include | |
parent | e71dc3fd0d7e8a9ff8ffbb56c5c2a9daeed9df49 (diff) |
Change SkMatrix::fixedStepInX to return SkVector (of SkScalar) rather than SkFixed.
All users were immediately converting to SkScalar or SkFixed3232.
This method is not used in Chromium, Android, or Google3.
BUG=skia:4632
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1692013002
Review URL: https://codereview.chromium.org/1692013002
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkMatrix.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/core/SkMatrix.h b/include/core/SkMatrix.h index 0ebe3280e2..adebada445 100644 --- a/include/core/SkMatrix.h +++ b/include/core/SkMatrix.h @@ -591,11 +591,16 @@ public: return GetMapPtsProc(this->getType()); } + /** Returns true if the matrix can be stepped in X (not complex + perspective). + */ + bool isFixedStepInX() const; + /** If the matrix can be stepped in X (not complex perspective) - then return true and if step[XY] is not null, return the step[XY] value. - If it cannot, return false and ignore step. + then return the step value. + If it cannot, behavior is undefined. */ - bool fixedStepInX(SkScalar y, SkFixed* stepX, SkFixed* stepY) const; + SkVector fixedStepInX(SkScalar y) const; /** Efficient comparison of two matrices. It distinguishes between zero and * negative zero. It will return false when the sign of zero values is the |