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 |