| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 #if USE_SKSL | 123 #if USE_SKSL |
| 124 SkSL::Compiler* shaderCompiler() const { | 124 SkSL::Compiler* shaderCompiler() const { |
| 125 return fCompiler; | 125 return fCompiler; |
| 126 } | 126 } |
| 127 #else | 127 #else |
| 128 shaderc_compiler_t shadercCompiler() const { | 128 shaderc_compiler_t shadercCompiler() const { |
| 129 return fCompiler; | 129 return fCompiler; |
| 130 } | 130 } |
| 131 #endif | 131 #endif |
| 132 | 132 |
| 133 void submitSecondaryCommandBuffer(const GrVkSecondaryCommandBuffer*, | 133 void submitSecondaryCommandBuffer(GrVkSecondaryCommandBuffer*, |
| 134 const GrVkRenderPass*, | 134 const GrVkRenderPass*, |
| 135 const VkClearValue*, | 135 const VkClearValue*, |
| 136 GrVkRenderTarget*, | 136 GrVkRenderTarget*, |
| 137 const SkIRect& bounds); | 137 const SkIRect& bounds); |
| 138 | 138 |
| 139 void finishDrawTarget() override; | 139 void finishDrawTarget() override; |
| 140 | 140 |
| 141 void generateMipmap(GrVkTexture* tex) const; | 141 void generateMipmap(GrVkTexture* tex) const; |
| 142 | 142 |
| 143 bool updateBuffer(GrVkBuffer* buffer, const void* src, size_t srcSizeInBytes
); | 143 bool updateBuffer(GrVkBuffer* buffer, const void* src, size_t srcSizeInBytes
); |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 #else | 262 #else |
| 263 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once | 263 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once |
| 264 // since there is significant overhead to the first compile of any compiler. | 264 // since there is significant overhead to the first compile of any compiler. |
| 265 shaderc_compiler_t fCompiler; | 265 shaderc_compiler_t fCompiler; |
| 266 #endif | 266 #endif |
| 267 | 267 |
| 268 typedef GrGpu INHERITED; | 268 typedef GrGpu INHERITED; |
| 269 }; | 269 }; |
| 270 | 270 |
| 271 #endif | 271 #endif |
| OLD | NEW |