Index: src/gpu/GrResourceProvider.cpp |
diff --git a/src/gpu/GrResourceProvider.cpp b/src/gpu/GrResourceProvider.cpp |
index 8b04caca4ecc29ae8155f5cf45cef038b08aad56..3adb0fafc23b88a753ed7f83d70cb99419e70dcb 100644 |
--- a/src/gpu/GrResourceProvider.cpp |
+++ b/src/gpu/GrResourceProvider.cpp |
@@ -106,7 +106,7 @@ GrIndexBuffer* GrResourceProvider::createIndexBuffer(size_t size, BufferUsage us |
} else { |
scratchFlags = GrResourceCache::kPreferNoPendingIO_ScratchFlag; |
} |
- GrGpuResource* resource = this->cache()->findAndRefScratchResource(key, scratchFlags); |
+ GrGpuResource* resource = this->cache()->findAndRefScratchResource(key, size, scratchFlags); |
if (resource) { |
return static_cast<GrIndexBuffer*>(resource); |
} |
@@ -135,7 +135,7 @@ GrVertexBuffer* GrResourceProvider::createVertexBuffer(size_t size, BufferUsage |
} else { |
scratchFlags = GrResourceCache::kPreferNoPendingIO_ScratchFlag; |
} |
- GrGpuResource* resource = this->cache()->findAndRefScratchResource(key, scratchFlags); |
+ GrGpuResource* resource = this->cache()->findAndRefScratchResource(key, size, scratchFlags); |
if (resource) { |
return static_cast<GrVertexBuffer*>(resource); |
} |