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

Unified Diff: src/core/SkCanvas.cpp

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/SkCanvas.cpp
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp
index d637405445dfc5d9f56497f088df9c03dea2f58e..963db620ba36e90c3b71b1e6ad1f2c177725898d 100644
--- a/src/core/SkCanvas.cpp
+++ b/src/core/SkCanvas.cpp
@@ -1224,65 +1224,60 @@ void SkCanvas::didTranslate(SkScalar, SkScalar) {
// Do nothing. Subclasses may do something.
}
-bool SkCanvas::translate(SkScalar dx, SkScalar dy) {
+void SkCanvas::translate(SkScalar dx, SkScalar dy) {
fDeviceCMDirty = true;
fCachedLocalClipBoundsDirty = true;
- bool res = fMCRec->fMatrix->preTranslate(dx, dy);
+ fMCRec->fMatrix->preTranslate(dx, dy);
this->didTranslate(dx, dy);
- return res;
}
void SkCanvas::didScale(SkScalar, SkScalar) {
// Do nothing. Subclasses may do something.
}
-bool SkCanvas::scale(SkScalar sx, SkScalar sy) {
+void SkCanvas::scale(SkScalar sx, SkScalar sy) {
fDeviceCMDirty = true;
fCachedLocalClipBoundsDirty = true;
- bool res = fMCRec->fMatrix->preScale(sx, sy);
+ fMCRec->fMatrix->preScale(sx, sy);
this->didScale(sx, sy);
- return res;
}
void SkCanvas::didRotate(SkScalar) {
// Do nothing. Subclasses may do something.
}
-bool SkCanvas::rotate(SkScalar degrees) {
+void SkCanvas::rotate(SkScalar degrees) {
fDeviceCMDirty = true;
fCachedLocalClipBoundsDirty = true;
- bool res = fMCRec->fMatrix->preRotate(degrees);
+ fMCRec->fMatrix->preRotate(degrees);
this->didRotate(degrees);
- return res;
}
void SkCanvas::didSkew(SkScalar, SkScalar) {
// Do nothing. Subclasses may do something.
}
-bool SkCanvas::skew(SkScalar sx, SkScalar sy) {
+void SkCanvas::skew(SkScalar sx, SkScalar sy) {
fDeviceCMDirty = true;
fCachedLocalClipBoundsDirty = true;
- bool res = fMCRec->fMatrix->preSkew(sx, sy);
+ fMCRec->fMatrix->preSkew(sx, sy);
this->didSkew(sx, sy);
- return res;
}
void SkCanvas::didConcat(const SkMatrix&) {
// Do nothing. Subclasses may do something.
}
-bool SkCanvas::concat(const SkMatrix& matrix) {
+void SkCanvas::concat(const SkMatrix& matrix) {
fDeviceCMDirty = true;
fCachedLocalClipBoundsDirty = true;
- bool res = fMCRec->fMatrix->preConcat(matrix);
+ fMCRec->fMatrix->preConcat(matrix);
this->didConcat(matrix);
- return res;
}
void SkCanvas::didSetMatrix(const SkMatrix&) {
« no previous file with comments | « include/core/SkMatrix.h ('k') | src/core/SkDraw.cpp » ('j') | src/core/SkMatrix.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698