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

Side by Side Diff: include/gpu/vk/GrVkBackendContext.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, 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
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 GrVkBackendContext_DEFINED 8 #ifndef GrVkBackendContext_DEFINED
9 #define GrVkBackendContext_DEFINED 9 #define GrVkBackendContext_DEFINED
10 10
11 #include "SkRefCnt.h" 11 #include "SkRefCnt.h"
12 12
13 #include "vulkan/vulkan.h" 13 #include "vk/GrVkDefines.h"
14 14
15 #ifdef SK_DEBUG 15 #ifdef SK_DEBUG
16 #define ENABLE_VK_LAYERS 16 #define ENABLE_VK_LAYERS
17 #endif 17 #endif
18 18
19 struct GrVkInterface; 19 struct GrVkInterface;
20 20
21 enum GrVkExtensionFlags { 21 enum GrVkExtensionFlags {
22 kEXT_debug_report_GrVkExtensionFlag = 0x0001, 22 kEXT_debug_report_GrVkExtensionFlag = 0x0001,
bsalomon 2016/03/28 13:05:47 Does this mix interface and device extensions? Do
jvanverth1 2016/03/28 13:35:38 The extensions are specified in docs just like Ope
23 kNV_glsl_shader_GrVkExtensionFlag = 0x0002, 23 kNV_glsl_shader_GrVkExtensionFlag = 0x0002,
24 kKHR_surface_GrVkExtensionFlag = 0x0004,
25 kKHR_swapchain_GrVkExtensionFlag = 0x0008,
26 kKHR_win32_surface_GrVkExtensionFlag = 0x0010,
27 kKHR_android_surface_GrVkExtensionFlag = 0x0020,
28 kKHR_xlib_surface_GrVkExtensionFlag = 0x0040,
24 }; 29 };
25 30
26 enum GrVkFeatureFlags { 31 enum GrVkFeatureFlags {
27 kGeometryShader_GrVkFeatureFlag = 0x0001, 32 kGeometryShader_GrVkFeatureFlag = 0x0001,
28 kDualSrcBlend_GrVkFeatureFlag = 0x0002, 33 kDualSrcBlend_GrVkFeatureFlag = 0x0002,
29 kSampleRateShading_GrVkFeatureFlag = 0x0004, 34 kSampleRateShading_GrVkFeatureFlag = 0x0004,
30 }; 35 };
31 36
32 // The BackendContext contains all of the base Vulkan objects needed by the GrVk Gpu. The assumption 37 // The BackendContext contains all of the base Vulkan objects needed by the GrVk Gpu. The assumption
33 // is that the client will set these up and pass them to the GrVkGpu constructor . The VkDevice 38 // is that the client will set these up and pass them to the GrVkGpu constructor . The VkDevice
(...skipping 12 matching lines...) Expand all
46 uint32_t fFeatures; 51 uint32_t fFeatures;
47 SkAutoTUnref<const GrVkInterface> fInterface; 52 SkAutoTUnref<const GrVkInterface> fInterface;
48 53
49 // Helper function to create the default Vulkan objects needed by the GrVkGp u object 54 // Helper function to create the default Vulkan objects needed by the GrVkGp u object
50 static const GrVkBackendContext* Create(); 55 static const GrVkBackendContext* Create();
51 56
52 ~GrVkBackendContext() override; 57 ~GrVkBackendContext() override;
53 }; 58 };
54 59
55 #endif 60 #endif
OLDNEW
« no previous file with comments | « gyp/gpu.gypi ('k') | include/gpu/vk/GrVkDefines.h » ('j') | include/gpu/vk/GrVkInterface.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698