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

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

Issue 1153593003: Remove the SkCanvas comment API (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: rebased Created 5 years, 6 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/SkDumpCanvas.cpp ('k') | src/utils/debugger/SkDebugCanvas.h » ('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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 } 301 }
302 } 302 }
303 303
304 SkDrawFilter* SkNWayCanvas::setDrawFilter(SkDrawFilter* filter) { 304 SkDrawFilter* SkNWayCanvas::setDrawFilter(SkDrawFilter* filter) {
305 Iter iter(fList); 305 Iter iter(fList);
306 while (iter.next()) { 306 while (iter.next()) {
307 iter->setDrawFilter(filter); 307 iter->setDrawFilter(filter);
308 } 308 }
309 return this->INHERITED::setDrawFilter(filter); 309 return this->INHERITED::setDrawFilter(filter);
310 } 310 }
311
312 void SkNWayCanvas::beginCommentGroup(const char* description) {
313 Iter iter(fList);
314 while (iter.next()) {
315 iter->beginCommentGroup(description);
316 }
317 }
318
319 void SkNWayCanvas::addComment(const char* kywd, const char* value) {
320 Iter iter(fList);
321 while (iter.next()) {
322 iter->addComment(kywd, value);
323 }
324 }
325
326 void SkNWayCanvas::endCommentGroup() {
327 Iter iter(fList);
328 while (iter.next()) {
329 iter->endCommentGroup();
330 }
331 }
OLDNEW
« no previous file with comments | « src/utils/SkDumpCanvas.cpp ('k') | src/utils/debugger/SkDebugCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698