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

Unified Diff: src/gpu/GrTessellator.h

Issue 2299683002: Revert of Screenspace AA tessellated path rendering. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 dd92015cc2a6d4a3d57b3bbb600c479da67c81f1..7cc4311aa575f1e4df2e818e34a831066033aadb 100644
--- a/src/gpu/GrTessellator.h
+++ b/src/gpu/GrTessellator.h
@@ -8,7 +8,6 @@
#ifndef GrTessellator_DEFINED
#define GrTessellator_DEFINED
-#include "GrColor.h"
#include "SkPoint.h"
class SkPath;
@@ -24,13 +23,9 @@
class VertexAllocator {
public:
- VertexAllocator(size_t stride) : fStride(stride) {}
virtual ~VertexAllocator() {}
- virtual void* lock(int vertexCount) = 0;
+ virtual SkPoint* lock(int vertexCount) = 0;
virtual void unlock(int actualCount) = 0;
- size_t stride() const { return fStride; }
-private:
- size_t fStride;
};
struct WindingVertex {
@@ -45,9 +40,8 @@
int PathToVertices(const SkPath& path, SkScalar tolerance, const SkRect& clipBounds,
WindingVertex** verts);
-int PathToTriangles(const SkPath& path, SkScalar tolerance, const SkRect& clipBounds,
- VertexAllocator*, bool antialias, const GrColor& color,
- bool canTweakAlphaForCoverage, bool *isLinear);
+int PathToTriangles(const SkPath& path, SkScalar tolerance, const SkRect& clipBounds,
+ VertexAllocator*, 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