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

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

Issue 19723012: Add SkNWayCanvas comment API overrides. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « include/utils/SkNWayCanvas.h ('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 static SkBitmap make_noconfig_bm(int width, int height) { 10 static SkBitmap make_noconfig_bm(int width, int height) {
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 return this->INHERITED::setBounder(bounder); 304 return this->INHERITED::setBounder(bounder);
305 } 305 }
306 306
307 SkDrawFilter* SkNWayCanvas::setDrawFilter(SkDrawFilter* filter) { 307 SkDrawFilter* SkNWayCanvas::setDrawFilter(SkDrawFilter* filter) {
308 Iter iter(fList); 308 Iter iter(fList);
309 while (iter.next()) { 309 while (iter.next()) {
310 iter->setDrawFilter(filter); 310 iter->setDrawFilter(filter);
311 } 311 }
312 return this->INHERITED::setDrawFilter(filter); 312 return this->INHERITED::setDrawFilter(filter);
313 } 313 }
314
315 void SkNWayCanvas::beginCommentGroup(const char* description) {
316 Iter iter(fList);
317 while (iter.next()) {
318 iter->beginCommentGroup(description);
319 }
320 }
321
322 void SkNWayCanvas::addComment(const char* kywd, const char* value) {
323 Iter iter(fList);
324 while (iter.next()) {
325 iter->addComment(kywd, value);
326 }
327 }
328
329 void SkNWayCanvas::endCommentGroup() {
330 Iter iter(fList);
331 while (iter.next()) {
332 iter->endCommentGroup();
333 }
334 }
OLDNEW
« no previous file with comments | « include/utils/SkNWayCanvas.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698