Index: src/gpu/vk/GrVkGpu.cpp |
diff --git a/src/gpu/vk/GrVkGpu.cpp b/src/gpu/vk/GrVkGpu.cpp |
index b23cced41d81a2016e748ae37f5b49295f52580c..5fba475cab34c4bb3a942bd77b7296d6cc013a60 100644 |
--- a/src/gpu/vk/GrVkGpu.cpp |
+++ b/src/gpu/vk/GrVkGpu.cpp |
@@ -180,16 +180,20 @@ GrBuffer* GrVkGpu::onCreateBuffer(size_t size, GrBufferType type, GrAccessPatter |
SkASSERT(kDynamic_GrAccessPattern == accessPattern || |
kStatic_GrAccessPattern == accessPattern); |
buff = GrVkVertexBuffer::Create(this, size, kDynamic_GrAccessPattern == accessPattern); |
+ break; |
case kIndex_GrBufferType: |
SkASSERT(kDynamic_GrAccessPattern == accessPattern || |
kStatic_GrAccessPattern == accessPattern); |
buff = GrVkIndexBuffer::Create(this, size, kDynamic_GrAccessPattern == accessPattern); |
+ break; |
case kXferCpuToGpu_GrBufferType: |
SkASSERT(kStream_GrAccessPattern == accessPattern); |
buff = GrVkTransferBuffer::Create(this, size, GrVkBuffer::kCopyRead_Type); |
+ break; |
case kXferGpuToCpu_GrBufferType: |
SkASSERT(kStream_GrAccessPattern == accessPattern); |
buff = GrVkTransferBuffer::Create(this, size, GrVkBuffer::kCopyWrite_Type); |
+ break; |
default: |
SkFAIL("Unknown buffer type."); |
return nullptr; |