#include "ui/ozone/platform/wayland/gpu/wayland_gl_egl_utility.h"
#include "base/containers/contains.h"
#ifndef EGL_ANGLE_platform_angle_device_type_swiftshader
#define EGL_ANGLE_platform_angle_device_type_swiftshader
#define EGL_PLATFORM_ANGLE_DEVICE_TYPE_SWIFTSHADER_ANGLE …
#endif
#ifndef EGL_ANGLE_platform_angle
#define EGL_ANGLE_platform_angle …
#define EGL_PLATFORM_ANGLE_NATIVE_PLATFORM_TYPE_ANGLE …
#define EGL_PLATFORM_ANGLE_DEVICE_TYPE_ANGLE …
#endif
#ifndef EGL_ANGLE_platform_angle_vulkan
#define EGL_ANGLE_platform_angle_vulkan …
#define EGL_PLATFORM_VULKAN_DISPLAY_MODE_HEADLESS_ANGLE …
#endif
#ifndef EGL_ANGLE_platform_angle_device_type_egl_angle
#define EGL_ANGLE_platform_angle_device_type_egl_angle
#define EGL_PLATFORM_ANGLE_DEVICE_TYPE_EGL_ANGLE …
#endif
#ifndef EGL_ANGLE_platform_angle_opengl
#define EGL_ANGLE_platform_angle_opengl …
#define EGL_PLATFORM_ANGLE_TYPE_OPENGL_ANGLE …
#define EGL_PLATFORM_ANGLE_TYPE_OPENGLES_ANGLE …
#endif
namespace ui {
WaylandGLEGLUtility::WaylandGLEGLUtility() = default;
WaylandGLEGLUtility::~WaylandGLEGLUtility() = default;
void WaylandGLEGLUtility::GetAdditionalEGLAttributes(
EGLenum platform_type,
std::vector<EGLAttrib>* display_attributes) { … }
void WaylandGLEGLUtility::ChooseEGLAlphaAndBufferSize(EGLint* alpha_size,
EGLint* buffer_size) { … }
void WaylandGLEGLUtility::CollectGpuExtraInfo(
bool enable_native_gpu_memory_buffers,
gfx::GpuExtraInfo& gpu_extra_info) const { … }
bool WaylandGLEGLUtility::HasVisualManager() { … }
}