aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/views/SkView.h
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-06-13 20:20:17 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-06-13 20:20:17 +0000
commita25c94e50a6bbd1a73656923592293385acc2ce7 (patch)
tree1dee1d48313382d18fbce968855f04b3478b695e /include/views/SkView.h
parentf09b87dda39df1315f26afb663aeaf8048330725 (diff)
add validate to SkView for debugging
git-svn-id: http://skia.googlecode.com/svn/trunk@9596 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/views/SkView.h')
-rw-r--r--include/views/SkView.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/views/SkView.h b/include/views/SkView.h
index 786d363041..66709ee2ce 100644
--- a/include/views/SkView.h
+++ b/include/views/SkView.h
@@ -373,6 +373,11 @@ protected:
virtual bool onGetFocusView(SkView**) const { return false; }
virtual bool onSetFocusView(SkView*) { return false; }
+#ifdef SK_DEBUG
+ void validate() const;
+#else
+ void validate() const {}
+#endif
private:
SkScalar fWidth, fHeight;
SkMatrix fMatrix;