Chromium Code Reviews| Index: src/gpu/GrDrawTarget.h |
| diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h |
| index a41fc43ea4675d36f5a8e4b59a710b0cfccd62eb..4f043697479395e2de8687ecadc5cc6bbef41b35 100644 |
| --- a/src/gpu/GrDrawTarget.h |
| +++ b/src/gpu/GrDrawTarget.h |
| @@ -15,6 +15,7 @@ |
| #include "GrIndexBuffer.h" |
| #include "GrPathRendering.h" |
| #include "GrTraceMarker.h" |
| +#include "GrVertexBuffer.h" |
| #include "SkClipStack.h" |
| #include "SkMatrix.h" |
| @@ -29,7 +30,6 @@ class GrClipData; |
| class GrDrawTargetCaps; |
| class GrPath; |
| class GrPathRange; |
| -class GrVertexBuffer; |
| class GrDrawTarget : public SkRefCnt { |
| public: |
| @@ -559,6 +559,10 @@ public: |
| fDevBoundsStorage = bounds; |
| fDevBounds = &fDevBoundsStorage; |
| } |
| + const GrVertexBuffer* vertexBuffer() const { return fVertexBuffer; } |
| + const GrIndexBuffer* indexBuffer() const { return fIndexBuffer; } |
| + void setVertexBuffer(const GrVertexBuffer* vb) { fVertexBuffer = vb; } |
|
bsalomon
2014/11/18 18:41:24
This has to be ref'ed, right?
|
| + void setIndexBuffer(const GrIndexBuffer* ib) { fIndexBuffer = ib; } |
| const SkRect* getDevBounds() const { return fDevBounds; } |
| // NULL if no copy of the dst is needed for the draw. |
| @@ -589,6 +593,9 @@ public: |
| SkRect fDevBoundsStorage; |
| SkRect* fDevBounds; |
| + const GrVertexBuffer* fVertexBuffer; |
| + const GrIndexBuffer* fIndexBuffer; |
| + |
| GrDeviceCoordTexture fDstCopy; |
| }; |