Index: src/gpu/GrGpu.cpp |
diff --git a/src/gpu/GrGpu.cpp b/src/gpu/GrGpu.cpp |
index bc11b4b9c6578b4f571b04c2897cbb4e2200fd3a..6b815b69713cd6eba8327283a763c3aad3b074d8 100644 |
--- a/src/gpu/GrGpu.cpp |
+++ b/src/gpu/GrGpu.cpp |
@@ -235,9 +235,10 @@ GrRenderTarget* GrGpu::wrapBackendTextureAsRenderTarget(const GrBackendTextureDe |
return this->onWrapBackendTextureAsRenderTarget(desc); |
} |
-GrBuffer* GrGpu::createBuffer(GrBufferType type, size_t size, GrAccessPattern accessPattern) { |
+GrBuffer* GrGpu::createBuffer(size_t size, GrBufferType intendedType, |
+ GrAccessPattern accessPattern) { |
this->handleDirtyContext(); |
- GrBuffer* buffer = this->onCreateBuffer(type, size, accessPattern); |
+ GrBuffer* buffer = this->onCreateBuffer(size, intendedType, accessPattern); |
if (!this->caps()->reuseScratchBuffers()) { |
buffer->resourcePriv().removeScratchKey(); |
} |