2 * Copyright 2012 Google Inc.
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
7 #ifndef SkPathWriter_DEFINED
8 #define SkPathWriter_DEFINED
14 SkPathWriter(SkPath& path);
16 void cubicTo(const SkPoint& pt1, const SkPoint& pt2, const SkPoint& pt3);
17 void deferredLine(const SkPoint& pt);
18 void deferredMove(const SkPoint& pt);
19 void deferredMoveLine(const SkPoint& pt);
22 bool isClosed() const;
23 bool isEmpty() const { return fEmpty; }
25 const SkPath* nativePath() const;
27 void quadTo(const SkPoint& pt1, const SkPoint& pt2);
28 bool someAssemblyRequired() const;
31 bool changedSlopes(const SkPoint& pt) const;
44 #endif /* defined(__PathOps__SkPathWriter__) */