| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 VkBufferMemoryBarrier* barrier) const; | 108 VkBufferMemoryBarrier* barrier) const; |
| 109 void addImageMemoryBarrier(VkPipelineStageFlags srcStageMask, | 109 void addImageMemoryBarrier(VkPipelineStageFlags srcStageMask, |
| 110 VkPipelineStageFlags dstStageMask, | 110 VkPipelineStageFlags dstStageMask, |
| 111 bool byRegion, | 111 bool byRegion, |
| 112 VkImageMemoryBarrier* barrier) const; | 112 VkImageMemoryBarrier* barrier) const; |
| 113 | 113 |
| 114 shaderc_compiler_t shadercCompiler() const { | 114 shaderc_compiler_t shadercCompiler() const { |
| 115 return fCompiler; | 115 return fCompiler; |
| 116 } | 116 } |
| 117 | 117 |
| 118 void submitSecondaryCommandBuffer(const GrVkSecondaryCommandBuffer*, | 118 void submitSecondaryCommandBuffer(GrVkSecondaryCommandBuffer*, |
| 119 const GrVkRenderPass*, | 119 const GrVkRenderPass*, |
| 120 const VkClearValue*, | 120 const VkClearValue*, |
| 121 GrVkRenderTarget*, | 121 GrVkRenderTarget*, |
| 122 const SkIRect& bounds); | 122 const SkIRect& bounds); |
| 123 | 123 |
| 124 void finishDrawTarget() override; | 124 void finishDrawTarget() override; |
| 125 | 125 |
| 126 void generateMipmap(GrVkTexture* tex) const; | 126 void generateMipmap(GrVkTexture* tex) const; |
| 127 | 127 |
| 128 bool updateBuffer(GrVkBuffer* buffer, const void* src, size_t srcSizeInBytes
); | 128 bool updateBuffer(GrVkBuffer* buffer, const void* src, size_t srcSizeInBytes
); |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 | 244 |
| 245 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once | 245 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once |
| 246 // since there is significant overhead to the first compile of any compiler. | 246 // since there is significant overhead to the first compile of any compiler. |
| 247 shaderc_compiler_t fCompiler; | 247 shaderc_compiler_t fCompiler; |
| 248 | 248 |
| 249 | 249 |
| 250 typedef GrGpu INHERITED; | 250 typedef GrGpu INHERITED; |
| 251 }; | 251 }; |
| 252 | 252 |
| 253 #endif | 253 #endif |
| OLD | NEW |