Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
test_swangle_utils.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_TESTING_TEST_SWANGLE_UTILS_H_
6#define FLUTTER_TESTING_TEST_SWANGLE_UTILS_H_
7
8#include <EGL/egl.h>
9
10namespace flutter::testing {
11
12//------------------------------------------------------------------------------
13/// @brief Creates an EGLDisplay using ANGLE with the Vulkan backend and
14/// SwiftShader as the device type.
15///
16/// @return The created EGLDisplay, or EGL_NO_DISPLAY if creation fails or
17/// if necessary extensions are not available.
18///
19EGLDisplay CreateSwangleDisplay();
20
21} // namespace flutter::testing
22
23#endif // FLUTTER_TESTING_TEST_SWANGLE_UTILS_H_
EGLDisplay CreateSwangleDisplay()
Creates an EGLDisplay using ANGLE with the Vulkan backend and SwiftShader as the device type.