be sure to erase complete (i.e. before the softclip)
git-svn-id: http://skia.googlecode.com/svn/trunk@2558 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/samplecode/SamplePageFlip.cpp b/samplecode/SamplePageFlip.cpp
index 1db0b2a..b2d96f0 100644
--- a/samplecode/SamplePageFlip.cpp
+++ b/samplecode/SamplePageFlip.cpp
@@ -70,11 +70,10 @@
// this must be local to the loop, since it needs to forget the pixels
// its writing to after each iteration, since we do the swap
SkCanvas canvas(update.bitmap());
- canvas.clipRect(clipR, SkRegion::kIntersect_Op, true);
-
canvas.clipRegion(update.dirty());
-
canvas.drawColor(0, SkXfermode::kClear_Mode);
+ canvas.clipRect(clipR, SkRegion::kIntersect_Op, true);
+
canvas.drawOval(oval, paint);
}
bounce(&x, &dx, WIDTH-OVALW);