| 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 int left, int top, int width, int height, | 197 int left, int top, int width, int height, |
| 198 GrPixelConfig dataConfig, | 198 GrPixelConfig dataConfig, |
| 199 const void* data, | 199 const void* data, |
| 200 size_t rowBytes); | 200 size_t rowBytes); |
| 201 | 201 |
| 202 SkAutoTUnref<const GrVkBackendContext> fBackendContext; | 202 SkAutoTUnref<const GrVkBackendContext> fBackendContext; |
| 203 SkAutoTUnref<GrVkCaps> fVkCaps; | 203 SkAutoTUnref<GrVkCaps> fVkCaps; |
| 204 | 204 |
| 205 // These Vulkan objects are provided by the client, and also stored in fBack
endContext. | 205 // These Vulkan objects are provided by the client, and also stored in fBack
endContext. |
| 206 // They're copied here for convenient access. | 206 // They're copied here for convenient access. |
| 207 #ifdef ENABLE_VK_LAYERS |
| 207 VkInstance fVkInstance; | 208 VkInstance fVkInstance; |
| 209 #endif |
| 208 VkDevice fDevice; | 210 VkDevice fDevice; |
| 209 VkQueue fQueue; // Must be Graphics queue | 211 VkQueue fQueue; // Must be Graphics queue |
| 210 | 212 |
| 211 // Created by GrVkGpu | 213 // Created by GrVkGpu |
| 212 GrVkResourceProvider fResourceProvider; | 214 GrVkResourceProvider fResourceProvider; |
| 213 VkCommandPool fCmdPool; | 215 VkCommandPool fCmdPool; |
| 214 GrVkCommandBuffer* fCurrentCmdBuffer; | 216 GrVkCommandBuffer* fCurrentCmdBuffer; |
| 215 VkPhysicalDeviceMemoryProperties fPhysDevMemProps; | 217 VkPhysicalDeviceMemoryProperties fPhysDevMemProps; |
| 216 | 218 |
| 217 #ifdef ENABLE_VK_LAYERS | 219 #ifdef ENABLE_VK_LAYERS |
| 218 // For reporting validation layer errors | 220 // For reporting validation layer errors |
| 219 VkDebugReportCallbackEXT fCallback; | 221 VkDebugReportCallbackEXT fCallback; |
| 220 #endif | 222 #endif |
| 221 | 223 |
| 222 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once | 224 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once |
| 223 // since there is significant overhead to the first compile of any compiler. | 225 // since there is significant overhead to the first compile of any compiler. |
| 224 shaderc_compiler_t fCompiler; | 226 shaderc_compiler_t fCompiler; |
| 225 | 227 |
| 226 | 228 |
| 227 typedef GrGpu INHERITED; | 229 typedef GrGpu INHERITED; |
| 228 }; | 230 }; |
| 229 | 231 |
| 230 #endif | 232 #endif |
| OLD | NEW |