| OLD | NEW |
| 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 "SkNWayCanvas.h" | 8 #include "SkNWayCanvas.h" |
| 9 | 9 |
| 10 SkNWayCanvas::SkNWayCanvas(int width, int height) | 10 SkNWayCanvas::SkNWayCanvas(int width, int height) |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 } | 79 } |
| 80 | 80 |
| 81 void SkNWayCanvas::willRestore() { | 81 void SkNWayCanvas::willRestore() { |
| 82 Iter iter(fList); | 82 Iter iter(fList); |
| 83 while (iter.next()) { | 83 while (iter.next()) { |
| 84 iter->restore(); | 84 iter->restore(); |
| 85 } | 85 } |
| 86 this->INHERITED::willRestore(); | 86 this->INHERITED::willRestore(); |
| 87 } | 87 } |
| 88 | 88 |
| 89 bool SkNWayCanvas::translate(SkScalar dx, SkScalar dy) { | 89 void SkNWayCanvas::didTranslate(SkScalar dx, SkScalar dy) { |
| 90 Iter iter(fList); | 90 Iter iter(fList); |
| 91 while (iter.next()) { | 91 while (iter.next()) { |
| 92 iter->translate(dx, dy); | 92 iter->translate(dx, dy); |
| 93 } | 93 } |
| 94 return this->INHERITED::translate(dx, dy); | 94 this->INHERITED::didTranslate(dx, dy); |
| 95 } | 95 } |
| 96 | 96 |
| 97 bool SkNWayCanvas::scale(SkScalar sx, SkScalar sy) { | 97 void SkNWayCanvas::didScale(SkScalar sx, SkScalar sy) { |
| 98 Iter iter(fList); | 98 Iter iter(fList); |
| 99 while (iter.next()) { | 99 while (iter.next()) { |
| 100 iter->scale(sx, sy); | 100 iter->scale(sx, sy); |
| 101 } | 101 } |
| 102 return this->INHERITED::scale(sx, sy); | 102 this->INHERITED::didScale(sx, sy); |
| 103 } | 103 } |
| 104 | 104 |
| 105 bool SkNWayCanvas::rotate(SkScalar degrees) { | 105 void SkNWayCanvas::didRotate(SkScalar degrees) { |
| 106 Iter iter(fList); | 106 Iter iter(fList); |
| 107 while (iter.next()) { | 107 while (iter.next()) { |
| 108 iter->rotate(degrees); | 108 iter->rotate(degrees); |
| 109 } | 109 } |
| 110 return this->INHERITED::rotate(degrees); | 110 this->INHERITED::didRotate(degrees); |
| 111 } | 111 } |
| 112 | 112 |
| 113 bool SkNWayCanvas::skew(SkScalar sx, SkScalar sy) { | 113 void SkNWayCanvas::didSkew(SkScalar sx, SkScalar sy) { |
| 114 Iter iter(fList); | 114 Iter iter(fList); |
| 115 while (iter.next()) { | 115 while (iter.next()) { |
| 116 iter->skew(sx, sy); | 116 iter->skew(sx, sy); |
| 117 } | 117 } |
| 118 return this->INHERITED::skew(sx, sy); | 118 this->INHERITED::didSkew(sx, sy); |
| 119 } | 119 } |
| 120 | 120 |
| 121 bool SkNWayCanvas::concat(const SkMatrix& matrix) { | 121 void SkNWayCanvas::didConcat(const SkMatrix& matrix) { |
| 122 Iter iter(fList); | 122 Iter iter(fList); |
| 123 while (iter.next()) { | 123 while (iter.next()) { |
| 124 iter->concat(matrix); | 124 iter->concat(matrix); |
| 125 } | 125 } |
| 126 return this->INHERITED::concat(matrix); | 126 this->INHERITED::didConcat(matrix); |
| 127 } | 127 } |
| 128 | 128 |
| 129 void SkNWayCanvas::setMatrix(const SkMatrix& matrix) { | 129 void SkNWayCanvas::didSetMatrix(const SkMatrix& matrix) { |
| 130 Iter iter(fList); | 130 Iter iter(fList); |
| 131 while (iter.next()) { | 131 while (iter.next()) { |
| 132 iter->setMatrix(matrix); | 132 iter->setMatrix(matrix); |
| 133 } | 133 } |
| 134 this->INHERITED::setMatrix(matrix); | 134 this->INHERITED::didSetMatrix(matrix); |
| 135 } | 135 } |
| 136 | 136 |
| 137 void SkNWayCanvas::onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle
edgeStyle) { | 137 void SkNWayCanvas::onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle
edgeStyle) { |
| 138 Iter iter(fList); | 138 Iter iter(fList); |
| 139 while (iter.next()) { | 139 while (iter.next()) { |
| 140 iter->clipRect(rect, op, kSoft_ClipEdgeStyle == edgeStyle); | 140 iter->clipRect(rect, op, kSoft_ClipEdgeStyle == edgeStyle); |
| 141 } | 141 } |
| 142 this->INHERITED::onClipRect(rect, op, edgeStyle); | 142 this->INHERITED::onClipRect(rect, op, edgeStyle); |
| 143 } | 143 } |
| 144 | 144 |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 iter->addComment(kywd, value); | 354 iter->addComment(kywd, value); |
| 355 } | 355 } |
| 356 } | 356 } |
| 357 | 357 |
| 358 void SkNWayCanvas::endCommentGroup() { | 358 void SkNWayCanvas::endCommentGroup() { |
| 359 Iter iter(fList); | 359 Iter iter(fList); |
| 360 while (iter.next()) { | 360 while (iter.next()) { |
| 361 iter->endCommentGroup(); | 361 iter->endCommentGroup(); |
| 362 } | 362 } |
| 363 } | 363 } |
| OLD | NEW |