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

Side by Side Diff: src/core/SkPathBuilder.cpp

Issue 1126993003: experimental path-builder Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « src/core/SkPath.cpp ('k') | src/core/SkPathIter.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 2015 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
8 #include "SkPathBuilder.h"
9
10 SkPathBuilder::SkPathBuilder() {
11 fCachedPath = NULL;
12 }
13
14 SkPathBuilder::~SkPathBuilder() {
15 SkSafeUnref(fCachedPath);
16 }
17
18 void SkPathBuilder::incReserve(int extraPtCount);
19
20 void SkPathBuilder::moveTo(SkPoint pt) {
21 }
22
23 void SkPathBuilder::lineTo(SkPoint pt) {
24 }
25
26 void SkPathBuilder::quadTo(SkPoint pt1, SkPoint pt2) {
27 }
28
29 void SkPathBuilder::conicTo(SkPoint pt1, SkPoint pt2, SkScalar w) {
30 }
31
32 void SkPathBuilder::cubicTo(SkPoint pt1, SkPoint pt2, SkPoint pt3) {
33 }
34
35 void SkPathBuilder::close() {
36 }
37
38 void SkPathBuilder::addRectContour(const SkRect&, SkPathDirection dir = kCW_Path Direction);
39 void SkPathBuilder::addOvalContour(const SkRect&, SkPathDirection dir = kCW_Path Direction);
40 void SkPathBuilder::addRRectContour(const SkRRect&, SkPathDirection dir = kCW_Pa thDirection);
41
42 private:
43 SkTDArray<SkPoint> fPts;
44 SkTDArray<char> fVerbs;
45 SkROPath* fCachedPath;
46 };
47
48
49 #endif
OLDNEW
« no previous file with comments | « src/core/SkPath.cpp ('k') | src/core/SkPathIter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698