epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 1 | |
| 2 | /* |
| 3 | * Copyright 2011 Google Inc. |
| 4 | * |
| 5 | * Use of this source code is governed by a BSD-style license that can be |
| 6 | * found in the LICENSE file. |
| 7 | */ |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 8 | #include "SkNWayCanvas.h" |
| 9 | |
reed@google.com | 6ae24e0 | 2012-09-26 13:44:13 +0000 | [diff] [blame] | 10 | SkNWayCanvas::SkNWayCanvas(int width, int height) |
commit-bot@chromium.org | e254310 | 2014-01-31 19:42:58 +0000 | [diff] [blame] | 11 | : INHERITED(width, height) {} |
reed@google.com | 6ae24e0 | 2012-09-26 13:44:13 +0000 | [diff] [blame] | 12 | |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 13 | SkNWayCanvas::~SkNWayCanvas() { |
| 14 | this->removeAll(); |
| 15 | } |
| 16 | |
| 17 | void SkNWayCanvas::addCanvas(SkCanvas* canvas) { |
| 18 | if (canvas) { |
| 19 | canvas->ref(); |
| 20 | *fList.append() = canvas; |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | void SkNWayCanvas::removeCanvas(SkCanvas* canvas) { |
| 25 | int index = fList.find(canvas); |
| 26 | if (index >= 0) { |
| 27 | canvas->unref(); |
| 28 | fList.removeShuffle(index); |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | void SkNWayCanvas::removeAll() { |
| 33 | fList.unrefAll(); |
| 34 | fList.reset(); |
| 35 | } |
| 36 | |
| 37 | /////////////////////////////////////////////////////////////////////////// |
| 38 | // These are forwarded to the N canvases we're referencing |
| 39 | |
| 40 | class SkNWayCanvas::Iter { |
| 41 | public: |
| 42 | Iter(const SkTDArray<SkCanvas*>& list) : fList(list) { |
| 43 | fIndex = 0; |
| 44 | } |
| 45 | bool next() { |
| 46 | if (fIndex < fList.count()) { |
| 47 | fCanvas = fList[fIndex++]; |
| 48 | return true; |
| 49 | } |
| 50 | return false; |
| 51 | } |
| 52 | SkCanvas* operator->() { return fCanvas; } |
vandebo@chromium.org | 74b4619 | 2012-01-28 01:45:11 +0000 | [diff] [blame] | 53 | |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 54 | private: |
| 55 | const SkTDArray<SkCanvas*>& fList; |
| 56 | int fIndex; |
| 57 | SkCanvas* fCanvas; |
| 58 | }; |
| 59 | |
Florin Malita | 5f6102d | 2014-06-30 10:13:28 -0400 | [diff] [blame] | 60 | void SkNWayCanvas::willSave() { |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 61 | Iter iter(fList); |
| 62 | while (iter.next()) { |
Florin Malita | 5f6102d | 2014-06-30 10:13:28 -0400 | [diff] [blame] | 63 | iter->save(); |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 64 | } |
commit-bot@chromium.org | e54a23f | 2014-03-12 20:21:48 +0000 | [diff] [blame] | 65 | |
Florin Malita | 5f6102d | 2014-06-30 10:13:28 -0400 | [diff] [blame] | 66 | this->INHERITED::willSave(); |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 67 | } |
| 68 | |
commit-bot@chromium.org | e54a23f | 2014-03-12 20:21:48 +0000 | [diff] [blame] | 69 | SkCanvas::SaveLayerStrategy SkNWayCanvas::willSaveLayer(const SkRect* bounds, const SkPaint* paint, |
| 70 | SaveFlags flags) { |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 71 | Iter iter(fList); |
| 72 | while (iter.next()) { |
| 73 | iter->saveLayer(bounds, paint, flags); |
| 74 | } |
commit-bot@chromium.org | e54a23f | 2014-03-12 20:21:48 +0000 | [diff] [blame] | 75 | |
| 76 | this->INHERITED::willSaveLayer(bounds, paint, flags); |
| 77 | // No need for a layer. |
| 78 | return kNoLayer_SaveLayerStrategy; |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 79 | } |
| 80 | |
commit-bot@chromium.org | e54a23f | 2014-03-12 20:21:48 +0000 | [diff] [blame] | 81 | void SkNWayCanvas::willRestore() { |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 82 | Iter iter(fList); |
| 83 | while (iter.next()) { |
| 84 | iter->restore(); |
| 85 | } |
commit-bot@chromium.org | e54a23f | 2014-03-12 20:21:48 +0000 | [diff] [blame] | 86 | this->INHERITED::willRestore(); |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 87 | } |
| 88 | |
commit-bot@chromium.org | 44c48d0 | 2014-03-13 20:03:58 +0000 | [diff] [blame] | 89 | void SkNWayCanvas::didConcat(const SkMatrix& matrix) { |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 90 | Iter iter(fList); |
| 91 | while (iter.next()) { |
| 92 | iter->concat(matrix); |
| 93 | } |
commit-bot@chromium.org | 44c48d0 | 2014-03-13 20:03:58 +0000 | [diff] [blame] | 94 | this->INHERITED::didConcat(matrix); |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 95 | } |
| 96 | |
commit-bot@chromium.org | 44c48d0 | 2014-03-13 20:03:58 +0000 | [diff] [blame] | 97 | void SkNWayCanvas::didSetMatrix(const SkMatrix& matrix) { |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 98 | Iter iter(fList); |
| 99 | while (iter.next()) { |
| 100 | iter->setMatrix(matrix); |
| 101 | } |
commit-bot@chromium.org | 44c48d0 | 2014-03-13 20:03:58 +0000 | [diff] [blame] | 102 | this->INHERITED::didSetMatrix(matrix); |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 103 | } |
| 104 | |
robertphillips@google.com | 8f90a89 | 2014-02-28 18:19:39 +0000 | [diff] [blame] | 105 | void SkNWayCanvas::onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle edgeStyle) { |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 106 | Iter iter(fList); |
| 107 | while (iter.next()) { |
robertphillips@google.com | 8f90a89 | 2014-02-28 18:19:39 +0000 | [diff] [blame] | 108 | iter->clipRect(rect, op, kSoft_ClipEdgeStyle == edgeStyle); |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 109 | } |
robertphillips@google.com | 8f90a89 | 2014-02-28 18:19:39 +0000 | [diff] [blame] | 110 | this->INHERITED::onClipRect(rect, op, edgeStyle); |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 111 | } |
| 112 | |
robertphillips@google.com | 8f90a89 | 2014-02-28 18:19:39 +0000 | [diff] [blame] | 113 | void SkNWayCanvas::onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeStyle) { |
reed@google.com | 4ed0fb7 | 2012-12-12 20:48:18 +0000 | [diff] [blame] | 114 | Iter iter(fList); |
| 115 | while (iter.next()) { |
robertphillips@google.com | 8f90a89 | 2014-02-28 18:19:39 +0000 | [diff] [blame] | 116 | iter->clipRRect(rrect, op, kSoft_ClipEdgeStyle == edgeStyle); |
reed@google.com | 4ed0fb7 | 2012-12-12 20:48:18 +0000 | [diff] [blame] | 117 | } |
robertphillips@google.com | 8f90a89 | 2014-02-28 18:19:39 +0000 | [diff] [blame] | 118 | this->INHERITED::onClipRRect(rrect, op, edgeStyle); |
reed@google.com | 4ed0fb7 | 2012-12-12 20:48:18 +0000 | [diff] [blame] | 119 | } |
| 120 | |
robertphillips@google.com | 8f90a89 | 2014-02-28 18:19:39 +0000 | [diff] [blame] | 121 | void SkNWayCanvas::onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle edgeStyle) { |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 122 | Iter iter(fList); |
| 123 | while (iter.next()) { |
robertphillips@google.com | 8f90a89 | 2014-02-28 18:19:39 +0000 | [diff] [blame] | 124 | iter->clipPath(path, op, kSoft_ClipEdgeStyle == edgeStyle); |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 125 | } |
robertphillips@google.com | 8f90a89 | 2014-02-28 18:19:39 +0000 | [diff] [blame] | 126 | this->INHERITED::onClipPath(path, op, edgeStyle); |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 127 | } |
| 128 | |
robertphillips@google.com | 8f90a89 | 2014-02-28 18:19:39 +0000 | [diff] [blame] | 129 | void SkNWayCanvas::onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) { |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 130 | Iter iter(fList); |
| 131 | while (iter.next()) { |
| 132 | iter->clipRegion(deviceRgn, op); |
| 133 | } |
robertphillips@google.com | 8f90a89 | 2014-02-28 18:19:39 +0000 | [diff] [blame] | 134 | this->INHERITED::onClipRegion(deviceRgn, op); |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 135 | } |
| 136 | |
reed | 41af966 | 2015-01-05 07:49:08 -0800 | [diff] [blame^] | 137 | void SkNWayCanvas::onDrawPaint(const SkPaint& paint) { |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 138 | Iter iter(fList); |
| 139 | while (iter.next()) { |
| 140 | iter->drawPaint(paint); |
| 141 | } |
| 142 | } |
| 143 | |
reed | 41af966 | 2015-01-05 07:49:08 -0800 | [diff] [blame^] | 144 | void SkNWayCanvas::onDrawPoints(PointMode mode, size_t count, const SkPoint pts[], |
| 145 | const SkPaint& paint) { |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 146 | Iter iter(fList); |
| 147 | while (iter.next()) { |
| 148 | iter->drawPoints(mode, count, pts, paint); |
| 149 | } |
| 150 | } |
| 151 | |
reed | 41af966 | 2015-01-05 07:49:08 -0800 | [diff] [blame^] | 152 | void SkNWayCanvas::onDrawRect(const SkRect& rect, const SkPaint& paint) { |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 153 | Iter iter(fList); |
| 154 | while (iter.next()) { |
| 155 | iter->drawRect(rect, paint); |
| 156 | } |
| 157 | } |
| 158 | |
reed | 41af966 | 2015-01-05 07:49:08 -0800 | [diff] [blame^] | 159 | void SkNWayCanvas::onDrawOval(const SkRect& rect, const SkPaint& paint) { |
commit-bot@chromium.org | be65a4c | 2013-11-14 19:02:41 +0000 | [diff] [blame] | 160 | Iter iter(fList); |
| 161 | while (iter.next()) { |
| 162 | iter->drawOval(rect, paint); |
| 163 | } |
| 164 | } |
| 165 | |
reed | 41af966 | 2015-01-05 07:49:08 -0800 | [diff] [blame^] | 166 | void SkNWayCanvas::onDrawRRect(const SkRRect& rrect, const SkPaint& paint) { |
reed@google.com | 4ed0fb7 | 2012-12-12 20:48:18 +0000 | [diff] [blame] | 167 | Iter iter(fList); |
| 168 | while (iter.next()) { |
| 169 | iter->drawRRect(rrect, paint); |
| 170 | } |
| 171 | } |
| 172 | |
commit-bot@chromium.org | ab58273 | 2014-02-21 12:20:45 +0000 | [diff] [blame] | 173 | void SkNWayCanvas::onDrawDRRect(const SkRRect& outer, const SkRRect& inner, |
| 174 | const SkPaint& paint) { |
| 175 | Iter iter(fList); |
| 176 | while (iter.next()) { |
| 177 | iter->drawDRRect(outer, inner, paint); |
| 178 | } |
| 179 | } |
| 180 | |
reed | 41af966 | 2015-01-05 07:49:08 -0800 | [diff] [blame^] | 181 | void SkNWayCanvas::onDrawPath(const SkPath& path, const SkPaint& paint) { |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 182 | Iter iter(fList); |
| 183 | while (iter.next()) { |
| 184 | iter->drawPath(path, paint); |
| 185 | } |
| 186 | } |
| 187 | |
reed | 41af966 | 2015-01-05 07:49:08 -0800 | [diff] [blame^] | 188 | void SkNWayCanvas::onDrawBitmap(const SkBitmap& bitmap, SkScalar x, SkScalar y, |
| 189 | const SkPaint* paint) { |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 190 | Iter iter(fList); |
| 191 | while (iter.next()) { |
| 192 | iter->drawBitmap(bitmap, x, y, paint); |
| 193 | } |
| 194 | } |
| 195 | |
reed | 41af966 | 2015-01-05 07:49:08 -0800 | [diff] [blame^] | 196 | void SkNWayCanvas::onDrawBitmapRect(const SkBitmap& bitmap, const SkRect* src, const SkRect& dst, |
| 197 | const SkPaint* paint, DrawBitmapRectFlags flags) { |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 198 | Iter iter(fList); |
| 199 | while (iter.next()) { |
commit-bot@chromium.org | eed779d | 2013-08-16 10:24:37 +0000 | [diff] [blame] | 200 | iter->drawBitmapRectToRect(bitmap, src, dst, paint, flags); |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 201 | } |
| 202 | } |
| 203 | |
reed | 41af966 | 2015-01-05 07:49:08 -0800 | [diff] [blame^] | 204 | void SkNWayCanvas::onDrawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, |
| 205 | const SkRect& dst, const SkPaint* paint) { |
commit-bot@chromium.org | be65a4c | 2013-11-14 19:02:41 +0000 | [diff] [blame] | 206 | Iter iter(fList); |
| 207 | while (iter.next()) { |
| 208 | iter->drawBitmapNine(bitmap, center, dst, paint); |
| 209 | } |
| 210 | } |
| 211 | |
reed | 41af966 | 2015-01-05 07:49:08 -0800 | [diff] [blame^] | 212 | void SkNWayCanvas::onDrawImage(const SkImage* image, SkScalar left, SkScalar top, |
| 213 | const SkPaint* paint) { |
piotaixr | b7bac3d | 2014-09-29 08:56:19 -0700 | [diff] [blame] | 214 | Iter iter(fList); |
| 215 | while (iter.next()) { |
| 216 | iter->drawImage(image, left, top, paint); |
| 217 | } |
| 218 | } |
| 219 | |
reed | 41af966 | 2015-01-05 07:49:08 -0800 | [diff] [blame^] | 220 | void SkNWayCanvas::onDrawImageRect(const SkImage* image, const SkRect* src, const SkRect& dst, |
| 221 | const SkPaint* paint) { |
piotaixr | b7bac3d | 2014-09-29 08:56:19 -0700 | [diff] [blame] | 222 | Iter iter(fList); |
| 223 | while (iter.next()) { |
| 224 | iter->drawImageRect(image, src, dst, paint); |
| 225 | } |
| 226 | } |
| 227 | |
reed | 41af966 | 2015-01-05 07:49:08 -0800 | [diff] [blame^] | 228 | void SkNWayCanvas::onDrawSprite(const SkBitmap& bitmap, int x, int y, const SkPaint* paint) { |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 229 | Iter iter(fList); |
| 230 | while (iter.next()) { |
| 231 | iter->drawSprite(bitmap, x, y, paint); |
| 232 | } |
| 233 | } |
| 234 | |
reed@google.com | e0d9ce8 | 2014-04-23 04:00:17 +0000 | [diff] [blame] | 235 | void SkNWayCanvas::onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, |
| 236 | const SkPaint& paint) { |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 237 | Iter iter(fList); |
| 238 | while (iter.next()) { |
| 239 | iter->drawText(text, byteLength, x, y, paint); |
| 240 | } |
| 241 | } |
| 242 | |
reed@google.com | e0d9ce8 | 2014-04-23 04:00:17 +0000 | [diff] [blame] | 243 | void SkNWayCanvas::onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[], |
| 244 | const SkPaint& paint) { |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 245 | Iter iter(fList); |
| 246 | while (iter.next()) { |
| 247 | iter->drawPosText(text, byteLength, pos, paint); |
| 248 | } |
| 249 | } |
| 250 | |
reed@google.com | e0d9ce8 | 2014-04-23 04:00:17 +0000 | [diff] [blame] | 251 | void SkNWayCanvas::onDrawPosTextH(const void* text, size_t byteLength, const SkScalar xpos[], |
| 252 | SkScalar constY, const SkPaint& paint) { |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 253 | Iter iter(fList); |
| 254 | while (iter.next()) { |
| 255 | iter->drawPosTextH(text, byteLength, xpos, constY, paint); |
| 256 | } |
| 257 | } |
| 258 | |
reed@google.com | e0d9ce8 | 2014-04-23 04:00:17 +0000 | [diff] [blame] | 259 | void SkNWayCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& path, |
| 260 | const SkMatrix* matrix, const SkPaint& paint) { |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 261 | Iter iter(fList); |
| 262 | while (iter.next()) { |
| 263 | iter->drawTextOnPath(text, byteLength, path, matrix, paint); |
| 264 | } |
| 265 | } |
| 266 | |
fmalita | b742517 | 2014-08-26 07:56:44 -0700 | [diff] [blame] | 267 | void SkNWayCanvas::onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, |
| 268 | const SkPaint &paint) { |
| 269 | Iter iter(fList); |
| 270 | while (iter.next()) { |
| 271 | iter->drawTextBlob(blob, x, y, paint); |
| 272 | } |
| 273 | } |
| 274 | |
reed | d5fa1a4 | 2014-08-09 11:08:05 -0700 | [diff] [blame] | 275 | void SkNWayCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix* matrix, |
| 276 | const SkPaint* paint) { |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 277 | Iter iter(fList); |
| 278 | while (iter.next()) { |
reed | d5fa1a4 | 2014-08-09 11:08:05 -0700 | [diff] [blame] | 279 | iter->drawPicture(picture, matrix, paint); |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 280 | } |
| 281 | } |
| 282 | |
reed | 41af966 | 2015-01-05 07:49:08 -0800 | [diff] [blame^] | 283 | void SkNWayCanvas::onDrawVertices(VertexMode vmode, int vertexCount, |
| 284 | const SkPoint vertices[], const SkPoint texs[], |
| 285 | const SkColor colors[], SkXfermode* xmode, |
| 286 | const uint16_t indices[], int indexCount, |
| 287 | const SkPaint& paint) { |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 288 | Iter iter(fList); |
| 289 | while (iter.next()) { |
| 290 | iter->drawVertices(vmode, vertexCount, vertices, texs, colors, xmode, |
| 291 | indices, indexCount, paint); |
| 292 | } |
| 293 | } |
| 294 | |
dandov | b3c9d1c | 2014-08-12 08:34:29 -0700 | [diff] [blame] | 295 | void SkNWayCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], |
| 296 | const SkPoint texCoords[4], SkXfermode* xmode, |
| 297 | const SkPaint& paint) { |
dandov | 963137b | 2014-08-07 07:49:53 -0700 | [diff] [blame] | 298 | Iter iter(fList); |
| 299 | while (iter.next()) { |
dandov | b3c9d1c | 2014-08-12 08:34:29 -0700 | [diff] [blame] | 300 | iter->drawPatch(cubics, colors, texCoords, xmode, paint); |
dandov | 963137b | 2014-08-07 07:49:53 -0700 | [diff] [blame] | 301 | } |
| 302 | } |
| 303 | |
reed@android.com | 6c924ad | 2009-03-31 03:48:49 +0000 | [diff] [blame] | 304 | SkDrawFilter* SkNWayCanvas::setDrawFilter(SkDrawFilter* filter) { |
| 305 | Iter iter(fList); |
| 306 | while (iter.next()) { |
| 307 | iter->setDrawFilter(filter); |
| 308 | } |
| 309 | return this->INHERITED::setDrawFilter(filter); |
| 310 | } |
commit-bot@chromium.org | 14cec91 | 2013-07-20 15:03:26 +0000 | [diff] [blame] | 311 | |
| 312 | void SkNWayCanvas::beginCommentGroup(const char* description) { |
| 313 | Iter iter(fList); |
| 314 | while (iter.next()) { |
| 315 | iter->beginCommentGroup(description); |
| 316 | } |
| 317 | } |
| 318 | |
| 319 | void SkNWayCanvas::addComment(const char* kywd, const char* value) { |
| 320 | Iter iter(fList); |
| 321 | while (iter.next()) { |
| 322 | iter->addComment(kywd, value); |
| 323 | } |
| 324 | } |
| 325 | |
| 326 | void SkNWayCanvas::endCommentGroup() { |
| 327 | Iter iter(fList); |
| 328 | while (iter.next()) { |
| 329 | iter->endCommentGroup(); |
| 330 | } |
| 331 | } |