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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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->clipRegion(deviceRgn, op); |
133 } | 133 } |
134 this->INHERITED::onClipRegion(deviceRgn, op); | 134 this->INHERITED::onClipRegion(deviceRgn, op); |
135 } | 135 } |
136 | 136 |
137 void SkNWayCanvas::clear(SkColor color) { | |
138 Iter iter(fList); | |
139 while (iter.next()) { | |
140 iter->clear(color); | |
141 } | |
142 } | |
143 | |
144 void SkNWayCanvas::drawPaint(const SkPaint& paint) { | 137 void SkNWayCanvas::drawPaint(const SkPaint& paint) { |
145 Iter iter(fList); | 138 Iter iter(fList); |
146 while (iter.next()) { | 139 while (iter.next()) { |
147 iter->drawPaint(paint); | 140 iter->drawPaint(paint); |
148 } | 141 } |
149 } | 142 } |
150 | 143 |
151 void SkNWayCanvas::drawPoints(PointMode mode, size_t count, const SkPoint pts[], | 144 void SkNWayCanvas::drawPoints(PointMode mode, size_t count, const SkPoint pts[], |
152 const SkPaint& paint) { | 145 const SkPaint& paint) { |
153 Iter iter(fList); | 146 Iter iter(fList); |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 iter->addComment(kywd, value); | 340 iter->addComment(kywd, value); |
348 } | 341 } |
349 } | 342 } |
350 | 343 |
351 void SkNWayCanvas::endCommentGroup() { | 344 void SkNWayCanvas::endCommentGroup() { |
352 Iter iter(fList); | 345 Iter iter(fList); |
353 while (iter.next()) { | 346 while (iter.next()) { |
354 iter->endCommentGroup(); | 347 iter->endCommentGroup(); |
355 } | 348 } |
356 } | 349 } |
OLD | NEW |