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

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

Issue 174593003: override new virtual onDrawDRRect in util canvas subclasses (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 10 months 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/SkLuaCanvas.cpp ('k') | src/utils/SkProxyCanvas.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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 } 198 }
199 } 199 }
200 200
201 void SkNWayCanvas::drawRRect(const SkRRect& rrect, const SkPaint& paint) { 201 void SkNWayCanvas::drawRRect(const SkRRect& rrect, const SkPaint& paint) {
202 Iter iter(fList); 202 Iter iter(fList);
203 while (iter.next()) { 203 while (iter.next()) {
204 iter->drawRRect(rrect, paint); 204 iter->drawRRect(rrect, paint);
205 } 205 }
206 } 206 }
207 207
208 void SkNWayCanvas::onDrawDRRect(const SkRRect& outer, const SkRRect& inner,
209 const SkPaint& paint) {
210 Iter iter(fList);
211 while (iter.next()) {
212 iter->drawDRRect(outer, inner, paint);
213 }
214 }
215
208 void SkNWayCanvas::drawPath(const SkPath& path, const SkPaint& paint) { 216 void SkNWayCanvas::drawPath(const SkPath& path, const SkPaint& paint) {
209 Iter iter(fList); 217 Iter iter(fList);
210 while (iter.next()) { 218 while (iter.next()) {
211 iter->drawPath(path, paint); 219 iter->drawPath(path, paint);
212 } 220 }
213 } 221 }
214 222
215 void SkNWayCanvas::drawBitmap(const SkBitmap& bitmap, SkScalar x, SkScalar y, 223 void SkNWayCanvas::drawBitmap(const SkBitmap& bitmap, SkScalar x, SkScalar y,
216 const SkPaint* paint) { 224 const SkPaint* paint) {
217 Iter iter(fList); 225 Iter iter(fList);
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 iter->addComment(kywd, value); 350 iter->addComment(kywd, value);
343 } 351 }
344 } 352 }
345 353
346 void SkNWayCanvas::endCommentGroup() { 354 void SkNWayCanvas::endCommentGroup() {
347 Iter iter(fList); 355 Iter iter(fList);
348 while (iter.next()) { 356 while (iter.next()) {
349 iter->endCommentGroup(); 357 iter->endCommentGroup();
350 } 358 }
351 } 359 }
OLDNEW
« no previous file with comments | « src/utils/SkLuaCanvas.cpp ('k') | src/utils/SkProxyCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698