summaryrefslogtreecommitdiff
path: root/chromium/skia/config/SkVulkanConfig.h
blob: 508a8d90af9df663c8a829aeec45cf8e67026f64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef GrVulkanDefines_DEFINED
#define GrVulkanDefines_DEFINED

#ifdef SK_VULKAN

#if defined(USE_X11)
// TODO(crbug.com/582554): As Skia backs on XCB for vulkan backend
// temporarily define VK_USE_PLATFORM_XCB_KHR to avoid build break.
// Change it to VK_USE_PLATFORM_XLIB_KHR if Skia supports xlib in future.
#define VK_USE_PLATFORM_XCB_KHR
#endif

#include <vulkan/vulkan.h>

#endif

#endif