Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Side by Side Diff: src/gpu/vk/GrVkExtensions.h

Issue 1825593002: GrVkGpu initialization cleanup. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address comments (and rebase to ToT) Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/vk/GrVkBackendContext.cpp ('k') | src/gpu/vk/GrVkExtensions.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkBackendContext.cpp ('k') | src/gpu/vk/GrVkExtensions.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698