Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: include/core/SkMatrix.h

Issue 1692013002: Change SkMatrix::fixedStepInX to return SkVector rather than SkFixed. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Split fixedStepInX into bool isFixedStepInX and SkVector fixedStepInX. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/core/SkMatrix.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkMatrix.h
diff --git a/include/core/SkMatrix.h b/include/core/SkMatrix.h
index 0ebe3280e2180778fa6fa32564baf1fe401d5ee0..adebada445913521638fe13f3ec1a3c3303cbe38 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
« no previous file with comments | « no previous file | src/core/SkMatrix.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698