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

Side by Side Diff: src/utils/SkDeferredCanvas.cpp

Issue 203203004: Consolidate SkCanvas matrix virtuals. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Updated per review. Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/pipe/SkGPipeWrite.cpp ('k') | src/utils/SkDumpCanvas.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "SkDeferredCanvas.h" 9 #include "SkDeferredCanvas.h"
10 10
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 void SkDeferredCanvas::willRestore() { 728 void SkDeferredCanvas::willRestore() {
729 this->drawingCanvas()->restore(); 729 this->drawingCanvas()->restore();
730 this->recordedDrawCommand(); 730 this->recordedDrawCommand();
731 this->INHERITED::willRestore(); 731 this->INHERITED::willRestore();
732 } 732 }
733 733
734 bool SkDeferredCanvas::isDrawingToLayer() const { 734 bool SkDeferredCanvas::isDrawingToLayer() const {
735 return this->drawingCanvas()->isDrawingToLayer(); 735 return this->drawingCanvas()->isDrawingToLayer();
736 } 736 }
737 737
738 void SkDeferredCanvas::didTranslate(SkScalar dx, SkScalar dy) {
739 this->drawingCanvas()->translate(dx, dy);
740 this->recordedDrawCommand();
741 this->INHERITED::didTranslate(dx, dy);
742 }
743
744 void SkDeferredCanvas::didScale(SkScalar sx, SkScalar sy) {
745 this->drawingCanvas()->scale(sx, sy);
746 this->recordedDrawCommand();
747 this->INHERITED::didScale(sx, sy);
748 }
749
750 void SkDeferredCanvas::didRotate(SkScalar degrees) {
751 this->drawingCanvas()->rotate(degrees);
752 this->recordedDrawCommand();
753 this->INHERITED::didRotate(degrees);
754 }
755
756 void SkDeferredCanvas::didSkew(SkScalar sx, SkScalar sy) {
757 this->drawingCanvas()->skew(sx, sy);
758 this->recordedDrawCommand();
759 this->INHERITED::didSkew(sx, sy);
760 }
761
762 void SkDeferredCanvas::didConcat(const SkMatrix& matrix) { 738 void SkDeferredCanvas::didConcat(const SkMatrix& matrix) {
763 this->drawingCanvas()->concat(matrix); 739 this->drawingCanvas()->concat(matrix);
764 this->recordedDrawCommand(); 740 this->recordedDrawCommand();
765 this->INHERITED::didConcat(matrix); 741 this->INHERITED::didConcat(matrix);
766 } 742 }
767 743
768 void SkDeferredCanvas::didSetMatrix(const SkMatrix& matrix) { 744 void SkDeferredCanvas::didSetMatrix(const SkMatrix& matrix) {
769 this->drawingCanvas()->setMatrix(matrix); 745 this->drawingCanvas()->setMatrix(matrix);
770 this->recordedDrawCommand(); 746 this->recordedDrawCommand();
771 this->INHERITED::didSetMatrix(matrix); 747 this->INHERITED::didSetMatrix(matrix);
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
998 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) { 974 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) {
999 this->drawingCanvas()->setDrawFilter(filter); 975 this->drawingCanvas()->setDrawFilter(filter);
1000 this->INHERITED::setDrawFilter(filter); 976 this->INHERITED::setDrawFilter(filter);
1001 this->recordedDrawCommand(); 977 this->recordedDrawCommand();
1002 return filter; 978 return filter;
1003 } 979 }
1004 980
1005 SkCanvas* SkDeferredCanvas::canvasForDrawIter() { 981 SkCanvas* SkDeferredCanvas::canvasForDrawIter() {
1006 return this->drawingCanvas(); 982 return this->drawingCanvas();
1007 } 983 }
OLDNEW
« no previous file with comments | « src/pipe/SkGPipeWrite.cpp ('k') | src/utils/SkDumpCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698