Index: src/gpu/GrGpu.h |
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h |
index 5c25927418ac1d12d39c9f7de2d3f0012e92c0d5..647b66b83e8389937d52f791f0b2433a1f1cb62a 100644 |
--- a/src/gpu/GrGpu.h |
+++ b/src/gpu/GrGpu.h |
@@ -374,25 +374,6 @@ public: |
const SkIRect& srcRect, |
const SkIPoint& dstPoint) = 0; |
- /** |
- * Sets source of vertex data for the next draw. Data does not have to be |
- * in the buffer until drawIndexed, drawNonIndexed, or drawIndexedInstances. |
- * |
- * @param buffer vertex buffer containing vertex data. Must be |
- * unlocked before draw call. Vertex size is queried |
- * from current GrDrawState. |
- */ |
- void setVertexSourceToBuffer(const GrVertexBuffer* buffer, size_t vertexStride); |
- |
- /** |
- * Sets source of index data for the next indexed draw. Data does not have |
- * to be in the buffer until drawIndexed. |
- * |
- * @param buffer index buffer containing indices. Must be unlocked |
- * before indexed draw call. |
- */ |
- void setIndexSourceToBuffer(const GrIndexBuffer* buffer); |
- |
virtual void draw(const GrOptDrawState&, |
const GrDrawTarget::DrawInfo&, |
const GrClipMaskManager::ScissorState&); |
@@ -444,23 +425,6 @@ protected: |
unsigned int* ref, |
unsigned int* mask); |
- struct GeometrySrcState { |
- GeometrySrcState() : fVertexBuffer(NULL), fIndexBuffer(NULL), fVertexSize(0) {} |
- const GrVertexBuffer* fVertexBuffer; |
- const GrIndexBuffer* fIndexBuffer; |
- size_t fVertexSize; |
- }; |
- |
- // accessors for derived classes |
- const GeometrySrcState& getGeomSrc() const { return fGeoSrcState; } |
- |
- // it is preferable to call this rather than getGeomSrc()->fVertexSize because of the assert. |
- size_t getVertexSize() const { |
- // the vertex layout is only valid if a vertex source has been specified. |
- SkASSERT(this->getGeomSrc().fVertexBuffer); |
- return this->getGeomSrc().fVertexSize; |
- } |
- |
const GrTraceMarkerSet& getActiveTraceMarkers() { return fActiveTraceMarkers; } |
GrContext::GPUStats fGPUStats; |
@@ -554,7 +518,6 @@ private: |
} |
} |
- GeometrySrcState fGeoSrcState; |
ResetTimestamp fResetTimestamp; |
uint32_t fResetBits; |
// these are mutable so they can be created on-demand |