| 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 #ifndef GrVkUniformBuffer_DEFINED | 8 #ifndef GrVkUniformBuffer_DEFINED |
| 9 #define GrVkUniformBuffer_DEFINED | 9 #define GrVkUniformBuffer_DEFINED |
| 10 | 10 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 void onRecycle(GrVkGpu* gpu) const override; | 43 void onRecycle(GrVkGpu* gpu) const override; |
| 44 | 44 |
| 45 typedef GrVkBuffer::Resource INHERITED; | 45 typedef GrVkBuffer::Resource INHERITED; |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 const GrVkBuffer::Resource* createResource(GrVkGpu* gpu, | 48 const GrVkBuffer::Resource* createResource(GrVkGpu* gpu, |
| 49 const GrVkBuffer::Desc& descripto
r) override; | 49 const GrVkBuffer::Desc& descripto
r) override; |
| 50 | 50 |
| 51 GrVkUniformBuffer(GrVkGpu* gpu, const GrVkBuffer::Desc& desc, | 51 GrVkUniformBuffer(GrVkGpu* gpu, const GrVkBuffer::Desc& desc, |
| 52 const GrVkUniformBuffer::Resource* resource) | 52 const GrVkUniformBuffer::Resource* resource) |
| 53 : INHERITED(desc, resource) | 53 : INHERITED(desc, resource) {} |
| 54 , fGpu(gpu) {} | |
| 55 | |
| 56 GrVkGpu* fGpu; | |
| 57 | 54 |
| 58 typedef GrVkBuffer INHERITED; | 55 typedef GrVkBuffer INHERITED; |
| 59 }; | 56 }; |
| 60 | 57 |
| 61 #endif | 58 #endif |
| OLD | NEW |