add LF at end of file (dumb warning)

git-svn-id: http://skia.googlecode.com/svn/trunk@902 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2011-03-08 15:36:57 +00:00
Родитель 27a1e77858
Коммит 480ab7d5f1
1 изменённых файлов: 12 добавлений и 8 удалений

Просмотреть файл

@ -23,7 +23,7 @@ class GrPathIter;
struct GrPoint; struct GrPoint;
/** /**
* A path renderer. * Base class for drawing paths into a GrDrawTarget.
*/ */
class GrPathRenderer { class GrPathRenderer {
public: public:
@ -74,18 +74,18 @@ public:
* clips. * clips.
*/ */
virtual bool requiresStencilPass(const GrDrawTarget* target, virtual bool requiresStencilPass(const GrDrawTarget* target,
GrPathIter* path, GrPathIter* path,
GrPathFill fill) const { return false; } GrPathFill fill) const { return false; }
bool requiresStencilPass(const GrDrawTarget* target, bool requiresStencilPass(const GrDrawTarget* target,
const GrPath& path, const GrPath& path,
GrPathFill fill) const { GrPathFill fill) const {
GrPath::Iter iter(path); GrPath::Iter iter(path);
return requiresStencilPass(target, &iter, fill); 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 * are already initialized to zero. Fill will always be either
* kWinding_PathFill or kEvenOdd_PathFill. * 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 { class GrDefaultPathRenderer : public GrPathRenderer {
public: public:
GrDefaultPathRenderer(bool separateStencilSupport, GrDefaultPathRenderer(bool separateStencilSupport,
@ -129,7 +133,7 @@ public:
GrPathFill fill, GrPathFill fill,
const GrPoint* translate); const GrPoint* translate);
virtual bool requiresStencilPass(const GrDrawTarget* target, virtual bool requiresStencilPass(const GrDrawTarget* target,
GrPathIter* path, GrPathIter* path,
GrPathFill fill) const; GrPathFill fill) const;
virtual void drawPathToStencil(GrDrawTarget* target, virtual void drawPathToStencil(GrDrawTarget* target,
GrPathIter* path, GrPathIter* path,
@ -148,4 +152,4 @@ private:
bool fStencilWrapOps; bool fStencilWrapOps;
}; };
#endif #endif