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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/utils/SkNWayCanvas.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/SkNWayCanvas.cpp
diff --git a/src/utils/SkNWayCanvas.cpp b/src/utils/SkNWayCanvas.cpp
index bfc7a7ab706ed88408da2f01f2a24947300d3d8b..5eebd01f453790727dfb835e055102b3fda7f4ae 100644
--- a/src/utils/SkNWayCanvas.cpp
+++ b/src/utils/SkNWayCanvas.cpp
@@ -311,3 +311,24 @@ SkDrawFilter* SkNWayCanvas::setDrawFilter(SkDrawFilter* filter) {
}
return this->INHERITED::setDrawFilter(filter);
}
+
+void SkNWayCanvas::beginCommentGroup(const char* description) {
+ Iter iter(fList);
+ while (iter.next()) {
+ iter->beginCommentGroup(description);
+ }
+}
+
+void SkNWayCanvas::addComment(const char* kywd, const char* value) {
+ Iter iter(fList);
+ while (iter.next()) {
+ iter->addComment(kywd, value);
+ }
+}
+
+void SkNWayCanvas::endCommentGroup() {
+ Iter iter(fList);
+ while (iter.next()) {
+ iter->endCommentGroup();
+ }
+}
« 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