| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 void onResolveRenderTarget(GrRenderTarget* target) override; | 134 void onResolveRenderTarget(GrRenderTarget* target) override; |
| 135 | 135 |
| 136 void submitSecondaryCommandBuffer(GrVkSecondaryCommandBuffer*, | 136 void submitSecondaryCommandBuffer(GrVkSecondaryCommandBuffer*, |
| 137 const GrVkRenderPass*, | 137 const GrVkRenderPass*, |
| 138 const VkClearValue*, | 138 const VkClearValue*, |
| 139 GrVkRenderTarget*, | 139 GrVkRenderTarget*, |
| 140 const SkIRect& bounds); | 140 const SkIRect& bounds); |
| 141 | 141 |
| 142 void finishDrawTarget() override; | 142 void finishDrawTarget() override; |
| 143 | 143 |
| 144 GrFence SK_WARN_UNUSED_RESULT insertFence() const override; |
| 145 bool waitFence(GrFence, uint64_t timeout) const override; |
| 146 void deleteFence(GrFence) const override; |
| 147 |
| 144 void generateMipmap(GrVkTexture* tex); | 148 void generateMipmap(GrVkTexture* tex); |
| 145 | 149 |
| 146 bool updateBuffer(GrVkBuffer* buffer, const void* src, VkDeviceSize offset,
VkDeviceSize size); | 150 bool updateBuffer(GrVkBuffer* buffer, const void* src, VkDeviceSize offset,
VkDeviceSize size); |
| 147 | 151 |
| 148 // Heaps | 152 // Heaps |
| 149 enum Heap { | 153 enum Heap { |
| 150 kLinearImage_Heap = 0, | 154 kLinearImage_Heap = 0, |
| 151 // We separate out small (i.e., <= 16K) images to reduce fragmentation | 155 // We separate out small (i.e., <= 16K) images to reduce fragmentation |
| 152 // in the main heap. | 156 // in the main heap. |
| 153 kOptimalImage_Heap, | 157 kOptimalImage_Heap, |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 #else | 281 #else |
| 278 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once | 282 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once |
| 279 // since there is significant overhead to the first compile of any compiler. | 283 // since there is significant overhead to the first compile of any compiler. |
| 280 shaderc_compiler_t fCompiler; | 284 shaderc_compiler_t fCompiler; |
| 281 #endif | 285 #endif |
| 282 | 286 |
| 283 typedef GrGpu INHERITED; | 287 typedef GrGpu INHERITED; |
| 284 }; | 288 }; |
| 285 | 289 |
| 286 #endif | 290 #endif |
| OLD | NEW |