| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "GrVkBuffer.h" | 8 #include "GrVkBuffer.h" |
| 9 #include "GrVkGpu.h" | 9 #include "GrVkGpu.h" |
| 10 #include "GrVkMemory.h" | 10 #include "GrVkMemory.h" |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 VK_CALL(gpu, UnmapMemory(gpu->device(), alloc())); | 188 VK_CALL(gpu, UnmapMemory(gpu->device(), alloc())); |
| 189 | 189 |
| 190 return true; | 190 return true; |
| 191 } | 191 } |
| 192 | 192 |
| 193 void GrVkBuffer::validate() const { | 193 void GrVkBuffer::validate() const { |
| 194 SkASSERT(!fResource || kVertex_Type == fDesc.fType || kIndex_Type == fDesc.f
Type | 194 SkASSERT(!fResource || kVertex_Type == fDesc.fType || kIndex_Type == fDesc.f
Type |
| 195 || kCopyRead_Type == fDesc.fType || kCopyWrite_Type == fDesc.fType | 195 || kCopyRead_Type == fDesc.fType || kCopyWrite_Type == fDesc.fType |
| 196 || kUniform_Type == fDesc.fType); | 196 || kUniform_Type == fDesc.fType); |
| 197 } | 197 } |
| 198 | |
| OLD | NEW |