Index: src/gpu/vk/GrVkGpu.cpp |
diff --git a/src/gpu/vk/GrVkGpu.cpp b/src/gpu/vk/GrVkGpu.cpp |
index ad795fd0d167b8070f1ca3bfe69ebcd636c7cd0d..e1e99ed0209b7be99cba0930fc73cb8d866a64ae 100644 |
--- a/src/gpu/vk/GrVkGpu.cpp |
+++ b/src/gpu/vk/GrVkGpu.cpp |
@@ -172,7 +172,7 @@ |
} |
/////////////////////////////////////////////////////////////////////////////// |
-GrBuffer* GrVkGpu::onCreateBuffer(size_t size, GrBufferType type, GrAccessPattern accessPattern) { |
+GrBuffer* GrVkGpu::onCreateBuffer(GrBufferType type, size_t size, GrAccessPattern accessPattern) { |
switch (type) { |
case kVertex_GrBufferType: |
SkASSERT(kDynamic_GrAccessPattern == accessPattern || |
@@ -1356,8 +1356,8 @@ |
false); |
GrVkTransferBuffer* transferBuffer = |
- static_cast<GrVkTransferBuffer*>(this->createBuffer(rowBytes * height, |
- kXferGpuToCpu_GrBufferType, |
+ static_cast<GrVkTransferBuffer*>(this->createBuffer(kXferGpuToCpu_GrBufferType, |
+ rowBytes * height, |
kStream_GrAccessPattern)); |
bool flipY = kBottomLeft_GrSurfaceOrigin == surface->origin(); |