| 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 | 
| 11 #include "GrVkBuffer.h" | 11 #include "GrVkBuffer.h" | 
| 12 #include "vk/GrVkInterface.h" |  | 
| 13 | 12 | 
| 14 class GrVkGpu; | 13 class GrVkGpu; | 
| 15 | 14 | 
| 16 class GrVkUniformBuffer : public GrVkBuffer { | 15 class GrVkUniformBuffer : public GrVkBuffer { | 
| 17 | 16 | 
| 18 public: | 17 public: | 
| 19     static GrVkUniformBuffer* Create(GrVkGpu* gpu, size_t size, bool dynamic); | 18     static GrVkUniformBuffer* Create(GrVkGpu* gpu, size_t size, bool dynamic); | 
| 20 | 19 | 
| 21     void* map(const GrVkGpu* gpu) { | 20     void* map(const GrVkGpu* gpu) { | 
| 22         return this->vkMap(gpu); | 21         return this->vkMap(gpu); | 
| (...skipping 13 matching lines...) Expand all  Loading... | 
| 36 | 35 | 
| 37 private: | 36 private: | 
| 38     GrVkUniformBuffer(const GrVkBuffer::Desc& desc, const GrVkBuffer::Resource* 
    resource) | 37     GrVkUniformBuffer(const GrVkBuffer::Desc& desc, const GrVkBuffer::Resource* 
    resource) | 
| 39         : INHERITED(desc, resource) { | 38         : INHERITED(desc, resource) { | 
| 40     }; | 39     }; | 
| 41 | 40 | 
| 42     typedef GrVkBuffer INHERITED; | 41     typedef GrVkBuffer INHERITED; | 
| 43 }; | 42 }; | 
| 44 | 43 | 
| 45 #endif | 44 #endif | 
| OLD | NEW | 
|---|