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

Side by Side Diff: include/gpu/vk/GrVkTypes.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 /* 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 8
9 #ifndef GrVkTypes_DEFINED 9 #ifndef GrVkTypes_DEFINED
10 #define GrVkTypes_DEFINED 10 #define GrVkTypes_DEFINED
11 11
12 #include <vulkan/vulkan.h> 12 #include "vk/GrVkDefines.h"
13 13
14 /** 14 /**
15 * KHR_debug 15 * KHR_debug
16 */ 16 */
17 /*typedef void (GR_GL_FUNCTION_TYPE* GrVkDEBUGPROC)(GrVkenum source, 17 /*typedef void (GR_GL_FUNCTION_TYPE* GrVkDEBUGPROC)(GrVkenum source,
18 GrVkenum type, 18 GrVkenum type,
19 GrVkuint id, 19 GrVkuint id,
20 GrVkenum severity, 20 GrVkenum severity,
21 GrVksizei length, 21 GrVksizei length,
22 const GrVkchar* message, 22 const GrVkchar* message,
(...skipping 10 matching lines...) Expand all
33 struct GrVkTextureInfo { 33 struct GrVkTextureInfo {
34 VkImage fImage; 34 VkImage fImage;
35 VkDeviceMemory fAlloc; // this may be null iff the texture is an RT and u ses borrow semantics 35 VkDeviceMemory fAlloc; // this may be null iff the texture is an RT and u ses borrow semantics
36 VkImageTiling fImageTiling; 36 VkImageTiling fImageTiling;
37 VkImageLayout fImageLayout; 37 VkImageLayout fImageLayout;
38 }; 38 };
39 39
40 GR_STATIC_ASSERT(sizeof(GrBackendObject) >= sizeof(const GrVkTextureInfo*)); 40 GR_STATIC_ASSERT(sizeof(GrBackendObject) >= sizeof(const GrVkTextureInfo*));
41 41
42 #endif 42 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698