diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-02-23 19:18:37 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-02-23 19:18:37 +0000 |
commit | 5b56d9e43fee4393f25f41d400981ce3960cd1aa (patch) | |
tree | cdbed69db73ae382a4fd748141041c7abb5880a4 /gm/convexpaths.cpp | |
parent | 8796ee60b79307629c56bf9f3e146833b312b957 (diff) |
In convex path renderer, translate polygon to origin for fanPt computation
Review URL: http://codereview.appspot.com/5698051/
git-svn-id: http://skia.googlecode.com/svn/trunk@3241 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/convexpaths.cpp')
-rw-r--r-- | gm/convexpaths.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gm/convexpaths.cpp b/gm/convexpaths.cpp index 9aedcbc4fc..2c719e826d 100644 --- a/gm/convexpaths.cpp +++ b/gm/convexpaths.cpp @@ -162,6 +162,10 @@ protected: fPaths.push_back().cubicTo(0, 0, 0, 0, 100 * SK_Scalar1, 100 * SK_Scalar1); + + // small circle. This is listed last so that it has device coords far + // from the origin (small area relative to x,y values). + fPaths.push_back().addCircle(0, 0, SkFloatToScalar(0.8f)); } virtual void onDraw(SkCanvas* canvas) { |