add 'r' (rotate) 's' (scale) options to SampleApp to test those matrix ops on
all slides
add beforeChild/afterChild methods for parents to wack the canvas before/after
it draws. These are called after the std child-view translate and clip, unlike
beforeChildren/afterChildren
git-svn-id: http://skia.googlecode.com/svn/trunk@324 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/views/SkView.cpp b/src/views/SkView.cpp
index a027744..f8008af 100644
--- a/src/views/SkView.cpp
+++ b/src/views/SkView.cpp
@@ -95,8 +95,14 @@
canvas->clipRect(r);
canvas->translate(fLoc.fX, fLoc.fY);
+ if (fParent) {
+ fParent->beforeChild(this, canvas);
+ }
this->onDraw(canvas);
-
+ if (fParent) {
+ fParent->afterChild(this, canvas);
+ }
+
B2FIter iter(this);
SkView* child;