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

Unified Diff: experimental/curve_dash_measure/SkDashMeasure.h

Issue 2236483004: Add SkDashMeasure.h (name up for bikeshedding) which takes a dashinfo (Closed) Base URL: https://skia.googlesource.com/skia.git@initializer_constructor
Patch Set: Actually remove src/core/SkDashMeasure.h Created 4 years, 4 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 | « no previous file | experimental/curve_dash_measure/SkDashMeasure.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/curve_dash_measure/SkDashMeasure.h
diff --git a/experimental/curve_dash_measure/SkDashMeasure.h b/experimental/curve_dash_measure/SkDashMeasure.h
new file mode 100644
index 0000000000000000000000000000000000000000..2088bd33023158780ee7d22f252ba548c9dfb011
--- /dev/null
+++ b/experimental/curve_dash_measure/SkDashMeasure.h
@@ -0,0 +1,22 @@
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef SkDashMeasure_DEFINED
+#define SkDashMeasure_DEFINED
+
+#include "SkPath.h"
+#include "SkPathEffect.h"
+
+static inline bool dashIsOn(int32_t index) {
+ return !(index % 2);
+}
+
+void getDashedPath(const SkPath& path,
+ const struct SkPathEffect::DashInfo& dashInfo,
+ SkPath* dst);
+
+#endif // SkDashMeasure_DEFINED
« no previous file with comments | « no previous file | experimental/curve_dash_measure/SkDashMeasure.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698