| 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 GrVkGpu_DEFINED | 8 #ifndef GrVkGpu_DEFINED |
| 9 #define GrVkGpu_DEFINED | 9 #define GrVkGpu_DEFINED |
| 10 | 10 |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 #endif | 129 #endif |
| 130 | 130 |
| 131 void submitSecondaryCommandBuffer(GrVkSecondaryCommandBuffer*, | 131 void submitSecondaryCommandBuffer(GrVkSecondaryCommandBuffer*, |
| 132 const GrVkRenderPass*, | 132 const GrVkRenderPass*, |
| 133 const VkClearValue*, | 133 const VkClearValue*, |
| 134 GrVkRenderTarget*, | 134 GrVkRenderTarget*, |
| 135 const SkIRect& bounds); | 135 const SkIRect& bounds); |
| 136 | 136 |
| 137 void finishDrawTarget() override; | 137 void finishDrawTarget() override; |
| 138 | 138 |
| 139 void generateMipmap(GrVkTexture* tex) const; | 139 void generateMipmap(GrVkTexture* tex); |
| 140 | 140 |
| 141 bool updateBuffer(GrVkBuffer* buffer, const void* src, VkDeviceSize offset,
VkDeviceSize size); | 141 bool updateBuffer(GrVkBuffer* buffer, const void* src, VkDeviceSize offset,
VkDeviceSize size); |
| 142 | 142 |
| 143 // Heaps | 143 // Heaps |
| 144 enum Heap { | 144 enum Heap { |
| 145 kLinearImage_Heap = 0, | 145 kLinearImage_Heap = 0, |
| 146 // We separate out small (i.e., <= 16K) images to reduce fragmentation | 146 // We separate out small (i.e., <= 16K) images to reduce fragmentation |
| 147 // in the main heap. | 147 // in the main heap. |
| 148 kOptimalImage_Heap, | 148 kOptimalImage_Heap, |
| 149 kSmallOptimalImage_Heap, | 149 kSmallOptimalImage_Heap, |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 #else | 260 #else |
| 261 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once | 261 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once |
| 262 // since there is significant overhead to the first compile of any compiler. | 262 // since there is significant overhead to the first compile of any compiler. |
| 263 shaderc_compiler_t fCompiler; | 263 shaderc_compiler_t fCompiler; |
| 264 #endif | 264 #endif |
| 265 | 265 |
| 266 typedef GrGpu INHERITED; | 266 typedef GrGpu INHERITED; |
| 267 }; | 267 }; |
| 268 | 268 |
| 269 #endif | 269 #endif |
| OLD | NEW |