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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 | 285 |
286 void SkNWayCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4]
, | 286 void SkNWayCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4]
, |
287 const SkPoint texCoords[4], SkXfermode* xmode, | 287 const SkPoint texCoords[4], SkXfermode* xmode, |
288 const SkPaint& paint) { | 288 const SkPaint& paint) { |
289 Iter iter(fList); | 289 Iter iter(fList); |
290 while (iter.next()) { | 290 while (iter.next()) { |
291 iter->drawPatch(cubics, colors, texCoords, xmode, paint); | 291 iter->drawPatch(cubics, colors, texCoords, xmode, paint); |
292 } | 292 } |
293 } | 293 } |
294 | 294 |
295 #ifdef SK_SUPPORT_LEGACY_DRAWFLTER | 295 #ifdef SK_SUPPORT_LEGACY_DRAWFILTER |
296 SkDrawFilter* SkNWayCanvas::setDrawFilter(SkDrawFilter* filter) { | 296 SkDrawFilter* SkNWayCanvas::setDrawFilter(SkDrawFilter* filter) { |
297 Iter iter(fList); | 297 Iter iter(fList); |
298 while (iter.next()) { | 298 while (iter.next()) { |
299 iter->setDrawFilter(filter); | 299 iter->setDrawFilter(filter); |
300 } | 300 } |
301 return this->INHERITED::setDrawFilter(filter); | 301 return this->INHERITED::setDrawFilter(filter); |
302 } | 302 } |
303 #endif | 303 #endif |
OLD | NEW |