Index: src/gpu/GrGpu.cpp |
diff --git a/src/gpu/GrGpu.cpp b/src/gpu/GrGpu.cpp |
index 728fb880622010fa9495932d467b7f6df7d3ff04..d46d09d5c7b5544ff828fa552235575ceecef67a 100644 |
--- a/src/gpu/GrGpu.cpp |
+++ b/src/gpu/GrGpu.cpp |
@@ -199,20 +199,12 @@ |
GrVertexBuffer* GrGpu::createVertexBuffer(size_t size, bool dynamic) { |
this->handleDirtyContext(); |
- GrVertexBuffer* vb = this->onCreateVertexBuffer(size, dynamic); |
- if (!this->caps()->reuseScratchBuffers()) { |
- vb->resourcePriv().removeScratchKey(); |
- } |
- return vb; |
+ return this->onCreateVertexBuffer(size, dynamic); |
} |
GrIndexBuffer* GrGpu::createIndexBuffer(size_t size, bool dynamic) { |
this->handleDirtyContext(); |
- GrIndexBuffer* ib = this->onCreateIndexBuffer(size, dynamic); |
- if (!this->caps()->reuseScratchBuffers()) { |
- ib->resourcePriv().removeScratchKey(); |
- } |
- return ib; |
+ return this->onCreateIndexBuffer(size, dynamic); |
} |
void GrGpu::clear(const SkIRect* rect, |