Index: src/core/SkCanvas.cpp |
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp |
index 3e349ea64d368f9360bb355190ffffea7a0f1005..551ca60742b3a6e280306bf92b8998d1e84c3251 100644 |
--- a/src/core/SkCanvas.cpp |
+++ b/src/core/SkCanvas.cpp |
@@ -1444,14 +1444,9 @@ |
///////////////////////////////////////////////////////////////////////////// |
void SkCanvas::translate(SkScalar dx, SkScalar dy) { |
- this->checkForDeferredSave(); |
- fDeviceCMDirty = true; |
- fMCRec->fMatrix.preTranslate(dx,dy); |
- |
- // Translate shouldn't affect the is-scale-translateness of the matrix. |
- SkASSERT(fIsScaleTranslate == fMCRec->fMatrix.isScaleTranslate()); |
- |
- this->didTranslate(dx,dy); |
+ SkMatrix m; |
+ m.setTranslate(dx, dy); |
+ this->concat(m); |
} |
void SkCanvas::scale(SkScalar sx, SkScalar sy) { |