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

Unified Diff: include/core/SkClipStack.h

Issue 311263015: Add dump() to SkClipStack to help with debugging. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add \n. Created 6 years, 6 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 | « no previous file | include/core/SkRRect.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkClipStack.h
diff --git a/include/core/SkClipStack.h b/include/core/SkClipStack.h
index 4243cee7b06fd84d2d89dade74992c70f9db8f3e..95e41e6220872aebbf64ccd106ee1a7ab96e9f9e 100644
--- a/include/core/SkClipStack.h
+++ b/include/core/SkClipStack.h
@@ -48,7 +48,10 @@ public:
kRRect_Type,
//!< This element combines a path with the current clip using a set operation
kPath_Type,
+
+ kLastType = kPath_Type
};
+ static const int kTypeCnt = kLastType + 1;
Element() {
this->initCommon(0, SkRegion::kReplace_Op, false);
@@ -165,6 +168,14 @@ public:
*/
void replay(SkCanvasClipVisitor*) const;
+#ifdef SK_DEVELOPER
+ /**
+ * Dumps the element to SkDebugf. This is intended for Skia development debugging
+ * Don't rely on the existence of this function or the formatting of its output.
+ */
+ void dump() const;
+#endif
+
private:
friend class SkClipStack;
@@ -341,6 +352,14 @@ public:
int32_t getTopmostGenID() const;
+#ifdef SK_DEVELOPER
+ /**
+ * Dumps the contents of the clip stack to SkDebugf. This is intended for Skia development
+ * debugging. Don't rely on the existence of this function or the formatting of its output.
+ */
+ void dump() const;
+#endif
+
public:
class Iter {
public:
« no previous file with comments | « no previous file | include/core/SkRRect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698