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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkPath.cpp ('k') | src/core/SkPathIter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkPathBuilder.cpp
diff --git a/src/core/SkPathBuilder.cpp b/src/core/SkPathBuilder.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..cf87d7269034d658dc4bf9f6e8d72fea47d138ce
--- /dev/null
+++ b/src/core/SkPathBuilder.cpp
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#include "SkPathBuilder.h"
+
+SkPathBuilder::SkPathBuilder() {
+ fCachedPath = NULL;
+}
+
+SkPathBuilder::~SkPathBuilder() {
+ SkSafeUnref(fCachedPath);
+}
+
+void SkPathBuilder::incReserve(int extraPtCount);
+
+void SkPathBuilder::moveTo(SkPoint pt) {
+}
+
+void SkPathBuilder::lineTo(SkPoint pt) {
+}
+
+void SkPathBuilder::quadTo(SkPoint pt1, SkPoint pt2) {
+}
+
+void SkPathBuilder::conicTo(SkPoint pt1, SkPoint pt2, SkScalar w) {
+}
+
+void SkPathBuilder::cubicTo(SkPoint pt1, SkPoint pt2, SkPoint pt3) {
+}
+
+void SkPathBuilder::close() {
+}
+
+void SkPathBuilder::addRectContour(const SkRect&, SkPathDirection dir = kCW_PathDirection);
+void SkPathBuilder::addOvalContour(const SkRect&, SkPathDirection dir = kCW_PathDirection);
+void SkPathBuilder::addRRectContour(const SkRRect&, SkPathDirection dir = kCW_PathDirection);
+
+private:
+ SkTDArray<SkPoint> fPts;
+ SkTDArray<char> fVerbs;
+ SkROPath* fCachedPath;
+};
+
+
+#endif
« 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