From 52e935d04c59135739c3a68fb6e19d313dc6d5ad Mon Sep 17 00:00:00 2001 From: "brettw@google.com" Date: Fri, 12 Dec 2008 21:01:41 +0000 Subject: New drop of Skia. This is up to CL 121320. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6925 0039d316-1c4b-4281-b951-d872f2087c98 --- skia/include/SkPath.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'skia/include/SkPath.h') diff --git a/skia/include/SkPath.h b/skia/include/SkPath.h index f5859a9..e2409ad 100644 --- a/skia/include/SkPath.h +++ b/skia/include/SkPath.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006-2008 Google Inc. + * Copyright (C) 2006 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,6 +22,7 @@ class SkFlattenableReadBuffer; class SkFlattenableWriteBuffer; +class SkAutoPathBoundsUpdate; class SkString; /** \class SkPath @@ -296,11 +297,12 @@ public: the path is different from the path's current last point, then an automatic lineTo() is added to connect the current contour to the start of the arc. However, if the path is empty, then we call moveTo() with - the first point of the arc. + the first point of the arc. The sweep angle is treated mod 360. @param oval The bounding oval defining the shape and size of the arc @param startAngle Starting angle (in degrees) where the arc begins - @param sweepAngle Sweep angle (in degrees) measured clockwise + @param sweepAngle Sweep angle (in degrees) measured clockwise. This is + treated mod 360. @param forceMoveTo If true, always begin a new contour with the arc */ void arcTo(const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle, @@ -579,6 +581,7 @@ private: void reversePathTo(const SkPath&); friend const SkPoint* sk_get_path_points(const SkPath&, int index); + friend class SkAutoPathBoundsUpdate; }; #endif -- cgit v1.1