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

Unified Diff: src/core/SkMatrixClipStateMgr.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
Index: src/core/SkMatrixClipStateMgr.h
diff --git a/src/core/SkMatrixClipStateMgr.h b/src/core/SkMatrixClipStateMgr.h
index c4201f86edd55abba9351c41264d04a7aa943d8d..b2275831387beca1000544768ca5f71f18760488 100644
--- a/src/core/SkMatrixClipStateMgr.h
+++ b/src/core/SkMatrixClipStateMgr.h
@@ -62,29 +62,29 @@ public:
fMatrix.reset();
}
- bool preTranslate(SkScalar dx, SkScalar dy) {
+ void preTranslate(SkScalar dx, SkScalar dy) {
fMatrixID = -1;
- return fMatrix.preTranslate(dx, dy);
+ fMatrix.preTranslate(dx, dy);
}
- bool preScale(SkScalar sx, SkScalar sy) {
+ void preScale(SkScalar sx, SkScalar sy) {
fMatrixID = -1;
- return fMatrix.preScale(sx, sy);
+ fMatrix.preScale(sx, sy);
}
- bool preRotate(SkScalar degrees) {
+ void preRotate(SkScalar degrees) {
fMatrixID = -1;
- return fMatrix.preRotate(degrees);
+ fMatrix.preRotate(degrees);
}
- bool preSkew(SkScalar sx, SkScalar sy) {
+ void preSkew(SkScalar sx, SkScalar sy) {
fMatrixID = -1;
- return fMatrix.preSkew(sx, sy);
+ fMatrix.preSkew(sx, sy);
}
- bool preConcat(const SkMatrix& matrix) {
+ void preConcat(const SkMatrix& matrix) {
fMatrixID = -1;
- return fMatrix.preConcat(matrix);
+ fMatrix.preConcat(matrix);
}
void setMatrix(const SkMatrix& matrix) {
@@ -285,29 +285,29 @@ public:
void restore();
- bool translate(SkScalar dx, SkScalar dy) {
+ void translate(SkScalar dx, SkScalar dy) {
this->call(kMatrix_CallType);
- return fCurMCState->fMatrixInfo->preTranslate(dx, dy);
+ fCurMCState->fMatrixInfo->preTranslate(dx, dy);
}
- bool scale(SkScalar sx, SkScalar sy) {
+ void scale(SkScalar sx, SkScalar sy) {
this->call(kMatrix_CallType);
- return fCurMCState->fMatrixInfo->preScale(sx, sy);
+ fCurMCState->fMatrixInfo->preScale(sx, sy);
}
- bool rotate(SkScalar degrees) {
+ void rotate(SkScalar degrees) {
this->call(kMatrix_CallType);
- return fCurMCState->fMatrixInfo->preRotate(degrees);
+ fCurMCState->fMatrixInfo->preRotate(degrees);
}
- bool skew(SkScalar sx, SkScalar sy) {
+ void skew(SkScalar sx, SkScalar sy) {
this->call(kMatrix_CallType);
- return fCurMCState->fMatrixInfo->preSkew(sx, sy);
+ fCurMCState->fMatrixInfo->preSkew(sx, sy);
}
- bool concat(const SkMatrix& matrix) {
+ void concat(const SkMatrix& matrix) {
this->call(kMatrix_CallType);
- return fCurMCState->fMatrixInfo->preConcat(matrix);
+ fCurMCState->fMatrixInfo->preConcat(matrix);
}
void setMatrix(const SkMatrix& matrix) {

Powered by Google App Engine
This is Rietveld 408576698