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