| 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 void SkNWayCanvas::didTranslate(SkScalar dx, SkScalar dy) { | |
| 90 Iter iter(fList); | |
| 91 while (iter.next()) { | |
| 92 iter->translate(dx, dy); | |
| 93 } | |
| 94 this->INHERITED::didTranslate(dx, dy); | |
| 95 } | |
| 96 | |
| 97 void SkNWayCanvas::didScale(SkScalar sx, SkScalar sy) { | |
| 98 Iter iter(fList); | |
| 99 while (iter.next()) { | |
| 100 iter->scale(sx, sy); | |
| 101 } | |
| 102 this->INHERITED::didScale(sx, sy); | |
| 103 } | |
| 104 | |
| 105 void SkNWayCanvas::didRotate(SkScalar degrees) { | |
| 106 Iter iter(fList); | |
| 107 while (iter.next()) { | |
| 108 iter->rotate(degrees); | |
| 109 } | |
| 110 this->INHERITED::didRotate(degrees); | |
| 111 } | |
| 112 | |
| 113 void SkNWayCanvas::didSkew(SkScalar sx, SkScalar sy) { | |
| 114 Iter iter(fList); | |
| 115 while (iter.next()) { | |
| 116 iter->skew(sx, sy); | |
| 117 } | |
| 118 this->INHERITED::didSkew(sx, sy); | |
| 119 } | |
| 120 | |
| 121 void SkNWayCanvas::didConcat(const SkMatrix& matrix) { | 89 void SkNWayCanvas::didConcat(const SkMatrix& matrix) { |
| 122 Iter iter(fList); | 90 Iter iter(fList); |
| 123 while (iter.next()) { | 91 while (iter.next()) { |
| 124 iter->concat(matrix); | 92 iter->concat(matrix); |
| 125 } | 93 } |
| 126 this->INHERITED::didConcat(matrix); | 94 this->INHERITED::didConcat(matrix); |
| 127 } | 95 } |
| 128 | 96 |
| 129 void SkNWayCanvas::didSetMatrix(const SkMatrix& matrix) { | 97 void SkNWayCanvas::didSetMatrix(const SkMatrix& matrix) { |
| 130 Iter iter(fList); | 98 Iter iter(fList); |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 iter->addComment(kywd, value); | 322 iter->addComment(kywd, value); |
| 355 } | 323 } |
| 356 } | 324 } |
| 357 | 325 |
| 358 void SkNWayCanvas::endCommentGroup() { | 326 void SkNWayCanvas::endCommentGroup() { |
| 359 Iter iter(fList); | 327 Iter iter(fList); |
| 360 while (iter.next()) { | 328 while (iter.next()) { |
| 361 iter->endCommentGroup(); | 329 iter->endCommentGroup(); |
| 362 } | 330 } |
| 363 } | 331 } |
| OLD | NEW |