Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: src/utils/SkNWayCanvas.cpp

Issue 778563002: Revert "Change clear() to respect the clip" (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/utils/SkGatherPixelRefsAndRects.h ('k') | src/utils/SkPictureUtils.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
137 void SkNWayCanvas::drawPaint(const SkPaint& paint) { 144 void SkNWayCanvas::drawPaint(const SkPaint& paint) {
138 Iter iter(fList); 145 Iter iter(fList);
139 while (iter.next()) { 146 while (iter.next()) {
140 iter->drawPaint(paint); 147 iter->drawPaint(paint);
141 } 148 }
142 } 149 }
143 150
144 void SkNWayCanvas::drawPoints(PointMode mode, size_t count, const SkPoint pts[], 151 void SkNWayCanvas::drawPoints(PointMode mode, size_t count, const SkPoint pts[],
145 const SkPaint& paint) { 152 const SkPaint& paint) {
146 Iter iter(fList); 153 Iter iter(fList);
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 iter->addComment(kywd, value); 347 iter->addComment(kywd, value);
341 } 348 }
342 } 349 }
343 350
344 void SkNWayCanvas::endCommentGroup() { 351 void SkNWayCanvas::endCommentGroup() {
345 Iter iter(fList); 352 Iter iter(fList);
346 while (iter.next()) { 353 while (iter.next()) {
347 iter->endCommentGroup(); 354 iter->endCommentGroup();
348 } 355 }
349 } 356 }
OLDNEW
« no previous file with comments | « src/utils/SkGatherPixelRefsAndRects.h ('k') | src/utils/SkPictureUtils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698