| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2016 Google Inc. | 3 * Copyright 2016 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 #ifndef VulkanWindowContext_DEFINED | 8 #ifndef VulkanWindowContext_DEFINED |
| 9 #define VulkanWindowContext_DEFINED | 9 #define VulkanWindowContext_DEFINED |
| 10 | 10 |
| 11 #include "SkTypes.h" // required to pull in any SkUserConfig defines |
| 12 |
| 11 #ifdef SK_VULKAN | 13 #ifdef SK_VULKAN |
| 12 | 14 |
| 13 #include "vk/GrVkBackendContext.h" | 15 #include "vk/GrVkBackendContext.h" |
| 14 #include "WindowContext.h" | 16 #include "WindowContext.h" |
| 15 | 17 |
| 16 class GrRenderTarget; | 18 class GrRenderTarget; |
| 17 | 19 |
| 18 namespace sk_app { | 20 namespace sk_app { |
| 19 | 21 |
| 20 class VulkanWindowContext : public WindowContext { | 22 class VulkanWindowContext : public WindowContext { |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 VkCommandPool fCommandPool; | 111 VkCommandPool fCommandPool; |
| 110 BackbufferInfo* fBackbuffers; | 112 BackbufferInfo* fBackbuffers; |
| 111 uint32_t fCurrentBackbufferIndex; | 113 uint32_t fCurrentBackbufferIndex; |
| 112 }; | 114 }; |
| 113 | 115 |
| 114 } // namespace sk_app | 116 } // namespace sk_app |
| 115 | 117 |
| 116 #endif // SK_VULKAN | 118 #endif // SK_VULKAN |
| 117 | 119 |
| 118 #endif | 120 #endif |
| OLD | NEW |