Index: src/gpu/GrPath.h |
diff --git a/src/gpu/GrPath.h b/src/gpu/GrPath.h |
index 09d317ef2f2d3d0883c01933c67151091b68da20..42c37f4645a96e6b5581f4f00aaeb3504fcad465 100644 |
--- a/src/gpu/GrPath.h |
+++ b/src/gpu/GrPath.h |
@@ -36,6 +36,17 @@ public: |
const SkRect& getBounds() const { return fBounds; } |
GrPathRendering::FillType getFillType() const { return fFillType; } |
+ |
+ /** Returns true if a path can be drawn in the same draw paths operation as the other |
bsalomon
2016/04/22 13:20:38
We we usually write this style of comments as
/**
Kimmo Kinnunen
2016/04/25 08:36:00
Done.
|
+ * path. Should return true only when the condition holds transitively with all other paths in |
+ * the same group. |
+ * E.g. |
+ * canCombineDrawPathBatchWith(a) AND canCombineDrawPathBatchWith(b) |
+ * canCombineDrawPathBatchWith(a) AND canCombineDrawPathBatchWith(c) |
+ * implies |
+ * canCombineDrawPathBatchWith(b) AND canCombineDrawPathBatchWith(c) |
+ */ |
+ virtual bool canCombineDrawPathBatchWith(const GrPath& other) const = 0; |
#ifdef SK_DEBUG |
bool isEqualTo(const SkPath& path, const GrStrokeInfo& stroke) const; |
#endif |