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

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

Issue 1618843002: Hide SkCanvas::{set,get}DrawFilter (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 4 years, 11 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
« include/core/SkCanvas.h ('K') | « src/utils/SkCanvasStateUtils.cpp ('k') | no next file » | 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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 SkDrawFilter* SkNWayCanvas::setDrawFilter(SkDrawFilter* filter) { 296 SkDrawFilter* SkNWayCanvas::setDrawFilter(SkDrawFilter* filter) {
296 Iter iter(fList); 297 Iter iter(fList);
297 while (iter.next()) { 298 while (iter.next()) {
298 iter->setDrawFilter(filter); 299 iter->setDrawFilter(filter);
299 } 300 }
300 return this->INHERITED::setDrawFilter(filter); 301 return this->INHERITED::setDrawFilter(filter);
301 } 302 }
303 #endif
OLDNEW
« include/core/SkCanvas.h ('K') | « src/utils/SkCanvasStateUtils.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698