diff options
Diffstat (limited to 'samplecode/SampleArc.cpp')
-rw-r--r-- | samplecode/SampleArc.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/samplecode/SampleArc.cpp b/samplecode/SampleArc.cpp index ada1d0a7cf..9deec8193a 100644 --- a/samplecode/SampleArc.cpp +++ b/samplecode/SampleArc.cpp @@ -16,10 +16,24 @@ #include "SkPorterDuff.h" #include "SkLayerRasterizer.h" +#include "SkParsePath.h" +static void testparse() { + SkRect r; + r.set(0, 0, SkFloatToScalar(10), SkFloatToScalar(10.5)); + SkPath p, p2; + SkString str, str2; + + p.addRect(r); + SkParsePath::ToSVGString(p, &str); + SkParsePath::FromSVGString(str.c_str(), &p2); + SkParsePath::ToSVGString(p2, &str2); +} + class ArcsView : public SkView { public: ArcsView() { + testparse(); fSweep = SkIntToScalar(100); } |