Index: src/gpu/GrGpu.cpp |
diff --git a/src/gpu/GrGpu.cpp b/src/gpu/GrGpu.cpp |
index d3fcddf432bf5f06c3ca02455ee320bb7085e538..523c6177a9e28d73e8fedeb9a30a7dbd48131610 100644 |
--- a/src/gpu/GrGpu.cpp |
+++ b/src/gpu/GrGpu.cpp |
@@ -30,8 +30,6 @@ GrGpu::GrGpu(GrContext* context) |
GrGpu::~GrGpu() { |
SkSafeSetNull(fQuadIndexBuffer); |
- SkSafeUnref(fGeoSrcState.fVertexBuffer); |
- SkSafeUnref(fGeoSrcState.fIndexBuffer); |
} |
void GrGpu::contextAbandoned() {} |
@@ -260,19 +258,6 @@ void GrGpu::removeGpuTraceMarker(const GrGpuTraceMarker* marker) { |
} |
} |
-void GrGpu::setVertexSourceToBuffer(const GrVertexBuffer* buffer, size_t vertexStride) { |
- SkSafeUnref(fGeoSrcState.fVertexBuffer); |
- fGeoSrcState.fVertexBuffer = buffer; |
- buffer->ref(); |
- fGeoSrcState.fVertexSize = vertexStride; |
-} |
- |
-void GrGpu::setIndexSourceToBuffer(const GrIndexBuffer* buffer) { |
- SkSafeUnref(fGeoSrcState.fIndexBuffer); |
- fGeoSrcState.fIndexBuffer = buffer; |
- buffer->ref(); |
-} |
- |
//////////////////////////////////////////////////////////////////////////////// |
static const int MAX_QUADS = 1 << 12; // max possible: (1 << 14) - 1; |