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

Unified Diff: include/core/SkCanvas.h

Issue 200223008: Remove SkCanvas matrix ops return value. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Updated per comments Created 6 years, 9 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 | include/core/SkMatrix.h » ('j') | src/core/SkMatrix.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkCanvas.h
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h
index b5df1e85e02fb9bf49093aefa8b5c350285007b9..b84ef33c364f56ef0aef57bf0d03fd258d42f3f8 100644
--- a/include/core/SkCanvas.h
+++ b/include/core/SkCanvas.h
@@ -461,35 +461,30 @@ public:
/** Preconcat the current matrix with the specified translation
@param dx The distance to translate in X
@param dy The distance to translate in Y
- returns true if the operation succeeded (e.g. did not overflow)
*/
- bool translate(SkScalar dx, SkScalar dy);
+ void translate(SkScalar dx, SkScalar dy);
/** Preconcat the current matrix with the specified scale.
@param sx The amount to scale in X
@param sy The amount to scale in Y
- returns true if the operation succeeded (e.g. did not overflow)
*/
- bool scale(SkScalar sx, SkScalar sy);
+ void scale(SkScalar sx, SkScalar sy);
/** Preconcat the current matrix with the specified rotation.
@param degrees The amount to rotate, in degrees
- returns true if the operation succeeded (e.g. did not overflow)
*/
- bool rotate(SkScalar degrees);
+ void rotate(SkScalar degrees);
/** Preconcat the current matrix with the specified skew.
@param sx The amount to skew in X
@param sy The amount to skew in Y
- returns true if the operation succeeded (e.g. did not overflow)
*/
- bool skew(SkScalar sx, SkScalar sy);
+ void skew(SkScalar sx, SkScalar sy);
/** Preconcat the current matrix with the specified matrix.
@param matrix The matrix to preconcatenate with the current matrix
- @return true if the operation succeeded (e.g. did not overflow)
*/
- bool concat(const SkMatrix& matrix);
+ void concat(const SkMatrix& matrix);
/** Replace the current matrix with a copy of the specified matrix.
@param matrix The matrix that will be copied into the current matrix.
« no previous file with comments | « no previous file | include/core/SkMatrix.h » ('j') | src/core/SkMatrix.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698