Index: src/gpu/GrAAConvexPathRenderer.cpp |
diff --git a/src/gpu/GrAAConvexPathRenderer.cpp b/src/gpu/GrAAConvexPathRenderer.cpp |
index 649d04166e06f920017e08d60b478d93c83e03b3..e59a9c84355a8801ec3c9a1159d5f0968c890bb9 100644 |
--- a/src/gpu/GrAAConvexPathRenderer.cpp |
+++ b/src/gpu/GrAAConvexPathRenderer.cpp |
@@ -535,6 +535,7 @@ public: |
const Attribute* inPosition() const { return fInPosition; } |
const Attribute* inQuadEdge() const { return fInQuadEdge; } |
+ GrColor color() const { return fColor; } |
class GLProcessor : public GrGLGeometryProcessor { |
public: |
@@ -643,7 +644,8 @@ public: |
private: |
QuadEdgeEffect(GrColor color, const SkMatrix& localMatrix) |
- : INHERITED(color, SkMatrix::I(), localMatrix) { |
+ : INHERITED(SkMatrix::I(), localMatrix) |
+ , fColor(color) { |
this->initClassID<QuadEdgeEffect>(); |
fInPosition = &this->addVertexAttrib(Attribute("inPosition", kVec2f_GrVertexAttribType)); |
fInQuadEdge = &this->addVertexAttrib(Attribute("inQuadEdge", kVec4f_GrVertexAttribType)); |
@@ -657,6 +659,7 @@ private: |
const Attribute* fInPosition; |
const Attribute* fInQuadEdge; |
+ GrColor fColor; |
GR_DECLARE_GEOMETRY_PROCESSOR_TEST; |