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

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

Issue 1834903003: Add WSI functions to GrVkInterface (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add Android and Xlib Created 4 years, 8 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
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
11 #include "../../private/SkTArray.h" 11 #include "../private/SkTArray.h"
12 #include "SkString.h" 12 #include "SkString.h"
13 #include "vulkan/vulkan.h" 13 #include "vk/GrVkDefines.h"
14 14
15 /** 15 /**
16 * This helper queries the Vulkan driver for available extensions and layers, re members them, 16 * This helper queries the Vulkan driver for available extensions and layers, re members them,
17 * and can be queried. It supports queries for both instance and device extensio ns and layers. 17 * and can be queried. It supports queries for both instance and device extensio ns and layers.
18 */ 18 */
19 class SK_API GrVkExtensions { 19 class SK_API GrVkExtensions {
20 public: 20 public:
21 GrVkExtensions() : fInstanceExtensionStrings(new SkTArray<SkString>) 21 GrVkExtensions() : fInstanceExtensionStrings(new SkTArray<SkString>)
22 , fDeviceExtensionStrings(new SkTArray<SkString>) 22 , fDeviceExtensionStrings(new SkTArray<SkString>)
23 , fInstanceLayerStrings(new SkTArray<SkString>) 23 , fInstanceLayerStrings(new SkTArray<SkString>)
(...skipping 13 matching lines...) Expand all
37 void print(const char* sep = "\n") const; 37 void print(const char* sep = "\n") const;
38 38
39 private: 39 private:
40 SkAutoTDelete<SkTArray<SkString> > fInstanceExtensionStrings; 40 SkAutoTDelete<SkTArray<SkString> > fInstanceExtensionStrings;
41 SkAutoTDelete<SkTArray<SkString> > fDeviceExtensionStrings; 41 SkAutoTDelete<SkTArray<SkString> > fDeviceExtensionStrings;
42 SkAutoTDelete<SkTArray<SkString> > fInstanceLayerStrings; 42 SkAutoTDelete<SkTArray<SkString> > fInstanceLayerStrings;
43 SkAutoTDelete<SkTArray<SkString> > fDeviceLayerStrings; 43 SkAutoTDelete<SkTArray<SkString> > fDeviceLayerStrings;
44 }; 44 };
45 45
46 #endif 46 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698