shape ops work in progress
add copyrights everywhere
start working on quadratic line segments (for quad intersection)
git-svn-id: http://skia.googlecode.com/svn/trunk@5286 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/experimental/Intersection/EdgeDemoApp.mm b/experimental/Intersection/EdgeDemoApp.mm
index f5ed426..23d8c5a 100644
--- a/experimental/Intersection/EdgeDemoApp.mm
+++ b/experimental/Intersection/EdgeDemoApp.mm
@@ -12,13 +12,13 @@
SkSampleView() {
this->setVisibleP(true);
this->setClipToBounds(false);
+ useOld = true;
};
protected:
virtual void onDraw(SkCanvas* canvas) {
static int step = 0; // useNew triggers error at 23275
// error is not easy to debug in its current state
static double seconds;
- static bool useOld = false;
if (step == -1) {
timeval t;
gettimeofday(&t, NULL);
@@ -40,7 +40,14 @@
inval(NULL);
}
}
+
+ virtual Click* onFindClickHandler(SkScalar , SkScalar ) {
+ useOld ^= true;
+ return NULL;
+ }
+
private:
+ bool useOld;
typedef SkView INHERITED;
};