SkNWayCanvas should also dispatch beginCommentGroup(), addComment() & endCommentGroup.
R=robertphillips@google.com
Author: fmalita@chromium.org
Review URL: https://chromiumcodereview.appspot.com/
19723012
git-svn-id: http://skia.googlecode.com/svn/trunk@10224
2bbb7eff-a529-9590-31e7-
b0007b416f81
virtual SkBounder* setBounder(SkBounder*) SK_OVERRIDE;
virtual SkDrawFilter* setDrawFilter(SkDrawFilter*) SK_OVERRIDE;
+ virtual void beginCommentGroup(const char* description) SK_OVERRIDE;
+ virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE;
+ virtual void endCommentGroup() SK_OVERRIDE;
+
private:
SkTDArray<SkCanvas*> fList;
}
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();
+ }
+}