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

Unified Diff: src/utils/SkDeferredCanvas.cpp

Issue 195793012: De-virtualize SkCanvas matrix ops. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: 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 | « src/utils/SkCanvasStack.cpp ('k') | src/utils/SkDumpCanvas.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/SkDeferredCanvas.cpp
diff --git a/src/utils/SkDeferredCanvas.cpp b/src/utils/SkDeferredCanvas.cpp
index 6592c6088447e18bfd328c78cd81210ff281fb89..9ac4a4951af3ab755ef2baa0eb7029b7fe01c39e 100644
--- a/src/utils/SkDeferredCanvas.cpp
+++ b/src/utils/SkDeferredCanvas.cpp
@@ -764,45 +764,40 @@ bool SkDeferredCanvas::isDrawingToLayer() const {
return this->drawingCanvas()->isDrawingToLayer();
}
-bool SkDeferredCanvas::translate(SkScalar dx, SkScalar dy) {
+void SkDeferredCanvas::didTranslate(SkScalar dx, SkScalar dy) {
this->drawingCanvas()->translate(dx, dy);
- bool val = this->INHERITED::translate(dx, dy);
this->recordedDrawCommand();
- return val;
+ this->INHERITED::didTranslate(dx, dy);
}
-bool SkDeferredCanvas::scale(SkScalar sx, SkScalar sy) {
+void SkDeferredCanvas::didScale(SkScalar sx, SkScalar sy) {
this->drawingCanvas()->scale(sx, sy);
- bool val = this->INHERITED::scale(sx, sy);
this->recordedDrawCommand();
- return val;
+ this->INHERITED::didScale(sx, sy);
}
-bool SkDeferredCanvas::rotate(SkScalar degrees) {
+void SkDeferredCanvas::didRotate(SkScalar degrees) {
this->drawingCanvas()->rotate(degrees);
- bool val = this->INHERITED::rotate(degrees);
this->recordedDrawCommand();
- return val;
+ this->INHERITED::didRotate(degrees);
}
-bool SkDeferredCanvas::skew(SkScalar sx, SkScalar sy) {
+void SkDeferredCanvas::didSkew(SkScalar sx, SkScalar sy) {
this->drawingCanvas()->skew(sx, sy);
- bool val = this->INHERITED::skew(sx, sy);
this->recordedDrawCommand();
- return val;
+ this->INHERITED::didSkew(sx, sy);
}
-bool SkDeferredCanvas::concat(const SkMatrix& matrix) {
+void SkDeferredCanvas::didConcat(const SkMatrix& matrix) {
this->drawingCanvas()->concat(matrix);
- bool val = this->INHERITED::concat(matrix);
this->recordedDrawCommand();
- return val;
+ this->INHERITED::didConcat(matrix);
}
-void SkDeferredCanvas::setMatrix(const SkMatrix& matrix) {
+void SkDeferredCanvas::didSetMatrix(const SkMatrix& matrix) {
this->drawingCanvas()->setMatrix(matrix);
- this->INHERITED::setMatrix(matrix);
this->recordedDrawCommand();
+ this->INHERITED::didSetMatrix(matrix);
}
void SkDeferredCanvas::onClipRect(const SkRect& rect,
« no previous file with comments | « src/utils/SkCanvasStack.cpp ('k') | src/utils/SkDumpCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698