From 5b56d9e43fee4393f25f41d400981ce3960cd1aa Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Thu, 23 Feb 2012 19:18:37 +0000 Subject: 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 --- gm/convexpaths.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gm/convexpaths.cpp') 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) { -- cgit v1.2.3