Commit f3037b31 authored by suyambu.rm's avatar suyambu.rm Committed by Commit Bot

Add Vulkan config for Skia in Chromium.

This CL adds customized Vulkan header for Skia.

Bug: 582554

Change-Id: Iaac8127d71de3b9ffbba54b9dd68053aea9c0777
Signed-off-by: default avatarsuyambu.rm <suyambu.rm@samsung.com>
Reviewed-on: https://chromium-review.googlesource.com/816214
Commit-Queue: Chandan Padhi <c.padhi@samsung.com>
Reviewed-by: default avatarFlorin Malita <fmalita@chromium.org>
Cr-Commit-Position: refs/heads/master@{#524662}
parent 3308f680
......@@ -45,7 +45,7 @@ config("skia_config") {
"//third_party/skia/include/pipe",
"//third_party/skia/include/ports",
"//third_party/skia/include/utils",
"//third_party/skia/third_party/vulkan",
"//third_party/vulkan/include",
]
if (enable_vulkan) {
include_dirs += [ "$vulkan_sdk_path/include" ]
......@@ -61,7 +61,10 @@ config("skia_config") {
defines += [ "SK_HAS_JPEG_LIBRARY" ]
}
if (enable_vulkan) {
defines += [ "SK_VULKAN=1" ]
defines += [
"SK_VULKAN_HEADER=\"../../skia/config/SkVulkanConfig.h\"",
"SK_VULKAN=1",
]
}
if (is_component_build) {
......
// 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
#if defined(OS_ANDROID)
#define VK_USE_PLATFORM_ANDROID_KHR
#endif
#include <vulkan/vulkan.h>
#endif
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment