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

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

Issue 2257023003: Plumb drawArc to SkDevice (Closed) Base URL: https://chromium.googlesource.com/skia.git@distance
Patch Set: Address comments Created 4 years, 4 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/SkPaintFilterCanvas.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 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 #include "SkNWayCanvas.h" 7 #include "SkNWayCanvas.h"
8 8
9 SkNWayCanvas::SkNWayCanvas(int width, int height) 9 SkNWayCanvas::SkNWayCanvas(int width, int height)
10 : INHERITED(width, height) {} 10 : INHERITED(width, height) {}
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 } 154 }
155 } 155 }
156 156
157 void SkNWayCanvas::onDrawOval(const SkRect& rect, const SkPaint& paint) { 157 void SkNWayCanvas::onDrawOval(const SkRect& rect, const SkPaint& paint) {
158 Iter iter(fList); 158 Iter iter(fList);
159 while (iter.next()) { 159 while (iter.next()) {
160 iter->drawOval(rect, paint); 160 iter->drawOval(rect, paint);
161 } 161 }
162 } 162 }
163 163
164 void SkNWayCanvas::onDrawArc(const SkRect& rect, SkScalar startAngle, SkScalar s weepAngle,
165 bool useCenter, const SkPaint& paint) {
166 Iter iter(fList);
167 while (iter.next()) {
168 iter->drawArc(rect, startAngle, sweepAngle, useCenter, paint);
169 }
170 }
171
164 void SkNWayCanvas::onDrawRRect(const SkRRect& rrect, const SkPaint& paint) { 172 void SkNWayCanvas::onDrawRRect(const SkRRect& rrect, const SkPaint& paint) {
165 Iter iter(fList); 173 Iter iter(fList);
166 while (iter.next()) { 174 while (iter.next()) {
167 iter->drawRRect(rrect, paint); 175 iter->drawRRect(rrect, paint);
168 } 176 }
169 } 177 }
170 178
171 void SkNWayCanvas::onDrawDRRect(const SkRRect& outer, const SkRRect& inner, cons t SkPaint& paint) { 179 void SkNWayCanvas::onDrawDRRect(const SkRRect& outer, const SkRRect& inner, cons t SkPaint& paint) {
172 Iter iter(fList); 180 Iter iter(fList);
173 while (iter.next()) { 181 while (iter.next()) {
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 316
309 #ifdef SK_SUPPORT_LEGACY_DRAWFILTER 317 #ifdef SK_SUPPORT_LEGACY_DRAWFILTER
310 SkDrawFilter* SkNWayCanvas::setDrawFilter(SkDrawFilter* filter) { 318 SkDrawFilter* SkNWayCanvas::setDrawFilter(SkDrawFilter* filter) {
311 Iter iter(fList); 319 Iter iter(fList);
312 while (iter.next()) { 320 while (iter.next()) {
313 iter->setDrawFilter(filter); 321 iter->setDrawFilter(filter);
314 } 322 }
315 return this->INHERITED::setDrawFilter(filter); 323 return this->INHERITED::setDrawFilter(filter);
316 } 324 }
317 #endif 325 #endif
OLDNEW
« no previous file with comments | « src/utils/SkLuaCanvas.cpp ('k') | src/utils/SkPaintFilterCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698