aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-03-08 15:36:57 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-03-08 15:36:57 +0000
commit480ab7d5f13c4b281051a129c5cb4914da511a16 (patch)
treed915dbe7375341dfded09b3527cfbb69a65c38db
parent27a1e77858bc8b4e16466678f31a747fcc37e0e9 (diff)
add LF at end of file (dumb warning)
git-svn-id: http://skia.googlecode.com/svn/trunk@902 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--gpu/src/GrPathRenderer.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/gpu/src/GrPathRenderer.h b/gpu/src/GrPathRenderer.h
index f99b92259c..c2d30c0bd5 100644
--- a/gpu/src/GrPathRenderer.h
+++ b/gpu/src/GrPathRenderer.h
@@ -23,7 +23,7 @@ class GrPathIter;
struct GrPoint;
/**
- * A path renderer.
+ * Base class for drawing paths into a GrDrawTarget.
*/
class GrPathRenderer {
public:
@@ -74,18 +74,18 @@ public:
* clips.
*/
virtual bool requiresStencilPass(const GrDrawTarget* target,
- GrPathIter* path,
+ GrPathIter* path,
GrPathFill fill) const { return false; }
-
+
bool requiresStencilPass(const GrDrawTarget* target,
- const GrPath& path,
- GrPathFill fill) const {
+ const GrPath& path,
+ GrPathFill fill) const {
GrPath::Iter iter(path);
return requiresStencilPass(target, &iter, fill);
}
/**
- * Draws a path to the stencil buffer. Assume the writable stencil bits
+ * Draws a path to the stencil buffer. Assume the writable stencil bits
* are already initialized to zero. Fill will always be either
* kWinding_PathFill or kEvenOdd_PathFill.
*
@@ -118,6 +118,10 @@ public:
}
};
+/**
+ * Subclass that renders the path using the stencil buffer to resolve fill
+ * rules (e.g. winding, even-odd)
+ */
class GrDefaultPathRenderer : public GrPathRenderer {
public:
GrDefaultPathRenderer(bool separateStencilSupport,
@@ -129,7 +133,7 @@ public:
GrPathFill fill,
const GrPoint* translate);
virtual bool requiresStencilPass(const GrDrawTarget* target,
- GrPathIter* path,
+ GrPathIter* path,
GrPathFill fill) const;
virtual void drawPathToStencil(GrDrawTarget* target,
GrPathIter* path,
@@ -148,4 +152,4 @@ private:
bool fStencilWrapOps;
};
-#endif \ No newline at end of file
+#endif