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 "GrVkIndexBuffer.h" | 8 #include "GrVkIndexBuffer.h" |
9 #include "GrVkGpu.h" | 9 #include "GrVkGpu.h" |
10 | 10 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 return this->vkUpdateData(this->getVkGpu(), src, srcSizeInBytes); | 65 return this->vkUpdateData(this->getVkGpu(), src, srcSizeInBytes); |
66 } else { | 66 } else { |
67 return false; | 67 return false; |
68 } | 68 } |
69 } | 69 } |
70 | 70 |
71 GrVkGpu* GrVkIndexBuffer::getVkGpu() const { | 71 GrVkGpu* GrVkIndexBuffer::getVkGpu() const { |
72 SkASSERT(!this->wasDestroyed()); | 72 SkASSERT(!this->wasDestroyed()); |
73 return static_cast<GrVkGpu*>(this->getGpu()); | 73 return static_cast<GrVkGpu*>(this->getGpu()); |
74 } | 74 } |
75 | |
OLD | NEW |