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

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

Issue 203203004: Consolidate SkCanvas matrix virtuals. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Updated per review. 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/utils/SkNWayCanvas.cpp ('k') | src/utils/debugger/SkDebugCanvas.h » ('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 2011 Google Inc. 3 * Copyright 2011 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 #include "SkProxyCanvas.h" 8 #include "SkProxyCanvas.h"
9 9
10 SkProxyCanvas::SkProxyCanvas(SkCanvas* proxy) : fProxy(proxy) { 10 SkProxyCanvas::SkProxyCanvas(SkCanvas* proxy) : fProxy(proxy) {
(...skipping 21 matching lines...) Expand all
32 this->INHERITED::willSaveLayer(bounds, paint, flags); 32 this->INHERITED::willSaveLayer(bounds, paint, flags);
33 // No need for a layer. 33 // No need for a layer.
34 return kNoLayer_SaveLayerStrategy; 34 return kNoLayer_SaveLayerStrategy;
35 } 35 }
36 36
37 void SkProxyCanvas::willRestore() { 37 void SkProxyCanvas::willRestore() {
38 fProxy->restore(); 38 fProxy->restore();
39 this->INHERITED::willRestore(); 39 this->INHERITED::willRestore();
40 } 40 }
41 41
42 void SkProxyCanvas::didTranslate(SkScalar dx, SkScalar dy) {
43 fProxy->translate(dx, dy);
44 this->INHERITED::didTranslate(dx, dy);
45 }
46
47 void SkProxyCanvas::didScale(SkScalar sx, SkScalar sy) {
48 fProxy->scale(sx, sy);
49 this->INHERITED::didScale(sx, sy);
50 }
51
52 void SkProxyCanvas::didRotate(SkScalar degrees) {
53 fProxy->rotate(degrees);
54 this->INHERITED::didRotate(degrees);
55 }
56
57 void SkProxyCanvas::didSkew(SkScalar sx, SkScalar sy) {
58 fProxy->skew(sx, sy);
59 this->INHERITED::didSkew(sx, sy);
60 }
61
62 void SkProxyCanvas::didConcat(const SkMatrix& matrix) { 42 void SkProxyCanvas::didConcat(const SkMatrix& matrix) {
63 fProxy->concat(matrix); 43 fProxy->concat(matrix);
64 this->INHERITED::didConcat(matrix); 44 this->INHERITED::didConcat(matrix);
65 } 45 }
66 46
67 void SkProxyCanvas::didSetMatrix(const SkMatrix& matrix) { 47 void SkProxyCanvas::didSetMatrix(const SkMatrix& matrix) {
68 fProxy->setMatrix(matrix); 48 fProxy->setMatrix(matrix);
69 this->INHERITED::didSetMatrix(matrix); 49 this->INHERITED::didSetMatrix(matrix);
70 } 50 }
71 51
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 fProxy->endCommentGroup(); 167 fProxy->endCommentGroup();
188 } 168 }
189 169
190 SkBounder* SkProxyCanvas::setBounder(SkBounder* bounder) { 170 SkBounder* SkProxyCanvas::setBounder(SkBounder* bounder) {
191 return fProxy->setBounder(bounder); 171 return fProxy->setBounder(bounder);
192 } 172 }
193 173
194 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) { 174 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) {
195 return fProxy->setDrawFilter(filter); 175 return fProxy->setDrawFilter(filter);
196 } 176 }
OLDNEW
« no previous file with comments | « src/utils/SkNWayCanvas.cpp ('k') | src/utils/debugger/SkDebugCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698