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

Unified Diff: src/gpu/GrTessellator.h

Issue 1152733009: Screenspace AA tessellated path rendering. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Make GLPrograms test generate only simple fills. 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 | « src/gpu/GrPathRendererChain.cpp ('k') | src/gpu/GrTessellator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrTessellator.h
diff --git a/src/gpu/GrTessellator.h b/src/gpu/GrTessellator.h
index 7cc4311aa575f1e4df2e818e34a831066033aadb..dd92015cc2a6d4a3d57b3bbb600c479da67c81f1 100644
--- a/src/gpu/GrTessellator.h
+++ b/src/gpu/GrTessellator.h
@@ -8,6 +8,7 @@
#ifndef GrTessellator_DEFINED
#define GrTessellator_DEFINED
+#include "GrColor.h"
#include "SkPoint.h"
class SkPath;
@@ -23,9 +24,13 @@ namespace GrTessellator {
class VertexAllocator {
public:
+ VertexAllocator(size_t stride) : fStride(stride) {}
virtual ~VertexAllocator() {}
- virtual SkPoint* lock(int vertexCount) = 0;
+ virtual void* lock(int vertexCount) = 0;
virtual void unlock(int actualCount) = 0;
+ size_t stride() const { return fStride; }
+private:
+ size_t fStride;
};
struct WindingVertex {
@@ -40,8 +45,9 @@ struct WindingVertex {
int PathToVertices(const SkPath& path, SkScalar tolerance, const SkRect& clipBounds,
WindingVertex** verts);
-int PathToTriangles(const SkPath& path, SkScalar tolerance, const SkRect& clipBounds,
- VertexAllocator*, bool *isLinear);
+int PathToTriangles(const SkPath& path, SkScalar tolerance, const SkRect& clipBounds,
+ VertexAllocator*, bool antialias, const GrColor& color,
+ bool canTweakAlphaForCoverage, bool *isLinear);
}
#endif
« no previous file with comments | « src/gpu/GrPathRendererChain.cpp ('k') | src/gpu/GrTessellator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698