Edit

kc3-lang/angle/util/display/DisplayPixmap.cpp

Branch :

  • Show log

    Commit

  • Author : Alexis Hetu
    Date : 2021-07-23 11:18:18
    Hash : 729cbcf1
    Message : Make Display and X11 available in the same build Chromium can use the 'use_ozone' and 'use_x11' build flags simultaneously, so we need the Vulkan display to still be selectable, even when the 'use_x11' flag is used. This is required to make SwANGLE work with Ozone/Wayland, which is going to use EGL_PLATFORM_VULKAN_DISPLAY_MODE_HEADLESS_ANGLE when SwANGLE is requested. Bug: chromium:1231934 Change-Id: I2ac1d3d9bc231608d7f77e9a2540f4c538840076 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3049351 Reviewed-by: Jamie Madill <jmadill@chromium.org> Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org> Commit-Queue: Alexis Hétu <sugoi@chromium.org>

  • util/display/DisplayPixmap.cpp
  • //
    // Copyright 2020 The ANGLE Project Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style license that can be
    // found in the LICENSE file.
    //
    
    // DisplayPixmap.cpp: Implementation of OSPixmap for Linux Display
    
    #include "util/OSPixmap.h"
    
    #if defined(ANGLE_USE_VULKAN_DISPLAY) && defined(EGL_NO_X11)
    OSPixmap *CreateOSPixmap()
    {
        return nullptr;
    }
    #endif