Index: src/gpu/GrAARectRenderer.h |
diff --git a/src/gpu/GrAARectRenderer.h b/src/gpu/GrAARectRenderer.h |
index 023eadc34fdaa104502ce7d55ecfd8910c8e5f00..3193f4bc3a4d83d4d9a522be22bfa36e2b56939e 100644 |
--- a/src/gpu/GrAARectRenderer.h |
+++ b/src/gpu/GrAARectRenderer.h |
@@ -16,6 +16,7 @@ |
class GrClip; |
class GrDrawTarget; |
+class GrGpu; |
class GrIndexBuffer; |
class GrPipelineBuilder; |
@@ -25,6 +26,19 @@ |
class GrAARectRenderer : public SkRefCnt { |
public: |
SK_DECLARE_INST_COUNT(GrAARectRenderer) |
+ |
+ GrAARectRenderer(GrGpu* gpu) |
+ : fGpu(gpu) |
+ , fAAFillRectIndexBuffer(NULL) |
+ , fAAMiterStrokeRectIndexBuffer(NULL) |
+ , fAABevelStrokeRectIndexBuffer(NULL) { |
+ } |
+ |
+ void reset(); |
+ |
+ ~GrAARectRenderer() { |
+ this->reset(); |
+ } |
// TODO: potentialy fuse the fill & stroke methods and differentiate |
// between them by passing in stroke (==NULL means fill). |
@@ -70,6 +84,11 @@ |
const SkRect& devInside, |
bool miterStroke); |
+ GrGpu* fGpu; |
+ GrIndexBuffer* fAAFillRectIndexBuffer; |
+ GrIndexBuffer* fAAMiterStrokeRectIndexBuffer; |
+ GrIndexBuffer* fAABevelStrokeRectIndexBuffer; |
+ |
typedef SkRefCnt INHERITED; |
}; |