Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Side by Side Diff: src/pathops/SkPathWriter.h

Issue 13094010: Add implementation of path ops (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/pathops/SkPathOpsSpan.h ('k') | src/pathops/SkPathWriter.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2012 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7 #ifndef SkPathWriter_DEFINED
8 #define SkPathWriter_DEFINED
9
10 #include "SkPath.h"
11
12 class SkPathWriter {
13 public:
14 SkPathWriter(SkPath& path);
15 void close();
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);
20 bool hasMove() const;
21 void init();
22 bool isClosed() const;
23 void lineTo();
24 const SkPath* nativePath() const;
25 void nudge();
26 void quadTo(const SkPoint& pt1, const SkPoint& pt2);
27 bool someAssemblyRequired() const;
28
29 private:
30 bool changedSlopes(const SkPoint& pt) const;
31 void moveTo();
32
33 SkPath* fPathPtr;
34 SkPoint fDefer[2];
35 SkPoint fFirstPt;
36 int fCloses;
37 int fMoves;
38 bool fEmpty;
39 bool fHasMove;
40 bool fMoved;
41 };
42
43
44 #endif /* defined(__PathOps__SkPathWriter__) */
OLDNEW
« no previous file with comments | « src/pathops/SkPathOpsSpan.h ('k') | src/pathops/SkPathWriter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698