Index: src/gpu/GrOvalRenderer.h |
diff --git a/src/gpu/GrOvalRenderer.h b/src/gpu/GrOvalRenderer.h |
index 57ce2a5dfe056174d9cc6e0386e09443bc02e313..f31aa69bb2d0d34e93064923517503d5469e2a2c 100644 |
--- a/src/gpu/GrOvalRenderer.h |
+++ b/src/gpu/GrOvalRenderer.h |
@@ -23,6 +23,16 @@ |
class GrOvalRenderer : public SkRefCnt { |
public: |
SK_DECLARE_INST_COUNT(GrOvalRenderer) |
+ |
+ GrOvalRenderer(GrGpu* gpu) |
+ : fGpu(gpu) |
+ , fRRectIndexBuffer(NULL) |
+ , fStrokeRRectIndexBuffer(NULL) {} |
+ ~GrOvalRenderer() { |
+ this->reset(); |
+ } |
+ |
+ void reset(); |
bool drawOval(GrDrawTarget*, |
GrPipelineBuilder*, |
@@ -69,6 +79,10 @@ |
const SkRect& circle, |
const SkStrokeRec& stroke); |
+ GrGpu* fGpu; |
+ GrIndexBuffer* fRRectIndexBuffer; |
+ GrIndexBuffer* fStrokeRRectIndexBuffer; |
+ |
typedef SkRefCnt INHERITED; |
}; |