diff options
author | 2013-05-29 13:24:23 +0000 | |
---|---|---|
committer | 2013-05-29 13:24:23 +0000 | |
commit | 0a4805e33f8ddb445a2fd061462e715e1707f049 (patch) | |
tree | 5af3146040fbaa1a6ea768833ab85453af30e5c2 /include/utils/SkDumpCanvas.h | |
parent | 960d114777ae75da1eeb289aabd9e4638cdc7caa (diff) |
First pass at Comment API
https://codereview.chromium.org/13957009/
git-svn-id: http://skia.googlecode.com/svn/trunk@9310 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/utils/SkDumpCanvas.h')
-rw-r--r-- | include/utils/SkDumpCanvas.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/utils/SkDumpCanvas.h b/include/utils/SkDumpCanvas.h index 8d9c67d50d..cdb1f19b42 100644 --- a/include/utils/SkDumpCanvas.h +++ b/include/utils/SkDumpCanvas.h @@ -45,7 +45,11 @@ public: kDrawText_Verb, kDrawPicture_Verb, kDrawVertices_Verb, - kDrawData_Verb + kDrawData_Verb, + + kBeginCommentGroup_Verb, + kAddComment_Verb, + kEndCommentGroup_Verb }; /** Subclasses of this are installed on the DumpCanvas, and then called for @@ -117,6 +121,9 @@ public: const uint16_t indices[], int indexCount, const SkPaint& paint) SK_OVERRIDE; virtual void drawData(const void*, size_t) 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: Dumper* fDumper; |