| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 Iter iter(fList); | 98 Iter iter(fList); |
| 99 while (iter.next()) { | 99 while (iter.next()) { |
| 100 iter->setMatrix(matrix); | 100 iter->setMatrix(matrix); |
| 101 } | 101 } |
| 102 this->INHERITED::didSetMatrix(matrix); | 102 this->INHERITED::didSetMatrix(matrix); |
| 103 } | 103 } |
| 104 | 104 |
| 105 void SkNWayCanvas::onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle
edgeStyle) { | 105 void SkNWayCanvas::onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle
edgeStyle) { |
| 106 Iter iter(fList); | 106 Iter iter(fList); |
| 107 while (iter.next()) { | 107 while (iter.next()) { |
| 108 iter->clipRect(rect, op, kSoft_ClipEdgeStyle == edgeStyle); | 108 iter->legacyClipRect(rect, op, kSoft_ClipEdgeStyle == edgeStyle); |
| 109 } | 109 } |
| 110 this->INHERITED::onClipRect(rect, op, edgeStyle); | 110 this->INHERITED::onClipRect(rect, op, edgeStyle); |
| 111 } | 111 } |
| 112 | 112 |
| 113 void SkNWayCanvas::onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeSt
yle edgeStyle) { | 113 void SkNWayCanvas::onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeSt
yle edgeStyle) { |
| 114 Iter iter(fList); | 114 Iter iter(fList); |
| 115 while (iter.next()) { | 115 while (iter.next()) { |
| 116 iter->clipRRect(rrect, op, kSoft_ClipEdgeStyle == edgeStyle); | 116 iter->legacyClipRRect(rrect, op, kSoft_ClipEdgeStyle == edgeStyle); |
| 117 } | 117 } |
| 118 this->INHERITED::onClipRRect(rrect, op, edgeStyle); | 118 this->INHERITED::onClipRRect(rrect, op, edgeStyle); |
| 119 } | 119 } |
| 120 | 120 |
| 121 void SkNWayCanvas::onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle
edgeStyle) { | 121 void SkNWayCanvas::onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle
edgeStyle) { |
| 122 Iter iter(fList); | 122 Iter iter(fList); |
| 123 while (iter.next()) { | 123 while (iter.next()) { |
| 124 iter->clipPath(path, op, kSoft_ClipEdgeStyle == edgeStyle); | 124 iter->legacyClipPath(path, op, kSoft_ClipEdgeStyle == edgeStyle); |
| 125 } | 125 } |
| 126 this->INHERITED::onClipPath(path, op, edgeStyle); | 126 this->INHERITED::onClipPath(path, op, edgeStyle); |
| 127 } | 127 } |
| 128 | 128 |
| 129 void SkNWayCanvas::onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) { | 129 void SkNWayCanvas::onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) { |
| 130 Iter iter(fList); | 130 Iter iter(fList); |
| 131 while (iter.next()) { | 131 while (iter.next()) { |
| 132 iter->clipRegion(deviceRgn, op); | 132 iter->legacyClipRegion(deviceRgn, op); |
| 133 } | 133 } |
| 134 this->INHERITED::onClipRegion(deviceRgn, op); | 134 this->INHERITED::onClipRegion(deviceRgn, op); |
| 135 } | 135 } |
| 136 | 136 |
| 137 void SkNWayCanvas::drawPaint(const SkPaint& paint) { | 137 void SkNWayCanvas::drawPaint(const SkPaint& paint) { |
| 138 Iter iter(fList); | 138 Iter iter(fList); |
| 139 while (iter.next()) { | 139 while (iter.next()) { |
| 140 iter->drawPaint(paint); | 140 iter->drawPaint(paint); |
| 141 } | 141 } |
| 142 } | 142 } |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 iter->addComment(kywd, value); | 340 iter->addComment(kywd, value); |
| 341 } | 341 } |
| 342 } | 342 } |
| 343 | 343 |
| 344 void SkNWayCanvas::endCommentGroup() { | 344 void SkNWayCanvas::endCommentGroup() { |
| 345 Iter iter(fList); | 345 Iter iter(fList); |
| 346 while (iter.next()) { | 346 while (iter.next()) { |
| 347 iter->endCommentGroup(); | 347 iter->endCommentGroup(); |
| 348 } | 348 } |
| 349 } | 349 } |
| OLD | NEW |