| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 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 GrVkExtensions_DEFINED | 8 #ifndef GrVkExtensions_DEFINED |
| 9 #define GrVkExtensions_DEFINED | 9 #define GrVkExtensions_DEFINED |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 fInstanceLayerStrings.swap(that->fInstanceLayerStrings); | 34 fInstanceLayerStrings.swap(that->fInstanceLayerStrings); |
| 35 fDeviceLayerStrings.swap(that->fDeviceLayerStrings); | 35 fDeviceLayerStrings.swap(that->fDeviceLayerStrings); |
| 36 | 36 |
| 37 SkTSwap(fInitialized, that->fInitialized); | 37 SkTSwap(fInitialized, that->fInitialized); |
| 38 } | 38 } |
| 39 | 39 |
| 40 /** | 40 /** |
| 41 * We sometimes need to use this class without having yet created a GrVkInte
rface. | 41 * We sometimes need to use this class without having yet created a GrVkInte
rface. |
| 42 */ | 42 */ |
| 43 bool init(uint32_t specVersion, | 43 bool init(uint32_t specVersion, |
| 44 VkPhysicalDevice physDev, |
| 44 PFN_vkEnumerateInstanceExtensionProperties enumerateInstanceExtens
ionProperties, | 45 PFN_vkEnumerateInstanceExtensionProperties enumerateInstanceExtens
ionProperties, |
| 45 PFN_vkEnumerateDeviceExtensionProperties enumerateDeviceExtensionP
roperties, | 46 PFN_vkEnumerateDeviceExtensionProperties enumerateDeviceExtensionP
roperties, |
| 46 PFN_vkEnumerateInstanceLayerProperties enumerateInstanceLayerPrope
rties, | 47 PFN_vkEnumerateInstanceLayerProperties enumerateInstanceLayerPrope
rties, |
| 47 PFN_vkEnumerateDeviceLayerProperties enumerateDeviceLayerPropertie
s); | 48 PFN_vkEnumerateDeviceLayerProperties enumerateDeviceLayerPropertie
s); |
| 48 | 49 |
| 49 bool isInitialized() const { return fInitialized; } | 50 bool isInitialized() const { return fInitialized; } |
| 50 | 51 |
| 51 /** | 52 /** |
| 52 * Queries whether an extension or layer is present. Will fail if init() has
not been called. | 53 * Queries whether an extension or layer is present. Will fail if init() has
not been called. |
| 53 */ | 54 */ |
| (...skipping 29 matching lines...) Expand all Loading... |
| 83 | 84 |
| 84 private: | 85 private: |
| 85 bool fInitialized; | 86 bool fInitialized; |
| 86 SkAutoTDelete<SkTArray<SkString> > fInstanceExtensionStrings; | 87 SkAutoTDelete<SkTArray<SkString> > fInstanceExtensionStrings; |
| 87 SkAutoTDelete<SkTArray<SkString> > fDeviceExtensionStrings; | 88 SkAutoTDelete<SkTArray<SkString> > fDeviceExtensionStrings; |
| 88 SkAutoTDelete<SkTArray<SkString> > fInstanceLayerStrings; | 89 SkAutoTDelete<SkTArray<SkString> > fInstanceLayerStrings; |
| 89 SkAutoTDelete<SkTArray<SkString> > fDeviceLayerStrings; | 90 SkAutoTDelete<SkTArray<SkString> > fDeviceLayerStrings; |
| 90 }; | 91 }; |
| 91 | 92 |
| 92 #endif | 93 #endif |
| OLD | NEW |