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

Unified Diff: include/utils/SkDumpCanvas.h

Issue 13957009: First pass at Comment API (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 8 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
Index: include/utils/SkDumpCanvas.h
===================================================================
--- include/utils/SkDumpCanvas.h (revision 8806)
+++ include/utils/SkDumpCanvas.h (working copy)
@@ -45,7 +45,11 @@
kDrawText_Verb,
kDrawPicture_Verb,
kDrawVertices_Verb,
- kDrawData_Verb
+ kDrawData_Verb,
+
+ kBeginGroup_Verb,
+ kAddComment_Verb,
+ kEndGroup_Verb
};
/** Subclasses of this are installed on the DumpCanvas, and then called for
@@ -117,6 +121,9 @@
const uint16_t indices[], int indexCount,
const SkPaint& paint) SK_OVERRIDE;
virtual void drawData(const void*, size_t) SK_OVERRIDE;
+ virtual void beginGroup(const char* description) SK_OVERRIDE;
+ virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE;
+ virtual void endGroup() SK_OVERRIDE;
private:
Dumper* fDumper;

Powered by Google App Engine
This is Rietveld 408576698