updates
git-svn-id: http://skia.googlecode.com/svn/trunk@558 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/samplecode/SampleEffects.cpp b/samplecode/SampleEffects.cpp
index 94f0413..7b61911 100644
--- a/samplecode/SampleEffects.cpp
+++ b/samplecode/SampleEffects.cpp
@@ -8,6 +8,23 @@
#include "SkDiscretePathEffect.h"
#include "SkGradientShader.h"
+#include "SkEdgeClipper.h"
+
+static void test_edgeclipper() {
+ SkPoint pts[] = {
+ { -8.38822452e+21, -7.69721471e+19 },
+ { 1.57645875e+23, 1.44634003e+21 },
+ { 1.61519691e+23, 1.48208059e+21 },
+ { 3.13963584e+23, 2.88057438e+21 }
+ };
+ SkRect clip = { 0, 0, 300, 200 };
+
+ SkEdgeClipper clipper;
+ clipper.clipCubic(pts, clip);
+}
+
+///////////
+
//#define COLOR 0xFFFF8844
#define COLOR 0xFF888888
@@ -74,6 +91,11 @@
fPaint[i].setColor(COLOR);
gPaintProcs[i](&fPaint[i]);
}
+
+ test_edgeclipper();
+ SkColorMatrix cm;
+ cm.setRotate(SkColorMatrix::kG_Axis, 180);
+ cm.setIdentity();
}
protected: