Flutter Engine
egl_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_SHELL_PLATFORM_LINUX_EGL_UTILS_H_
6 #define FLUTTER_SHELL_PLATFORM_LINUX_EGL_UTILS_H_
7 
8 #include <EGL/egl.h>
9 
10 #include <glib.h>
11 
12 G_BEGIN_DECLS
13 
14 /**
15  * egl_error_to_string:
16  * @error: an EGL error code.
17  *
18  * Converts an egl error code to a human readable string. e.g. "Bad Match".
19  *
20  * Returns: an error description.
21  */
22 const gchar* egl_error_to_string(EGLint error);
23 
24 /**
25  * egl_config_to_string:
26  * @display: an EGL display.
27  * @config: an EGL configuration.
28  *
29  * Converts an EGL configuration to a human readable string. e.g.
30  * "EGL_CONFIG_ID=1 EGL_RED_SIZE=8...".
31  *
32  * Returns: a configuration description.
33  */
34 gchar* egl_config_to_string(EGLDisplay display, EGLConfig config);
35 
36 G_END_DECLS
37 
38 #endif // FLUTTER_SHELL_PLATFORM_LINUX_EGL_UTILS_H_
gchar * egl_config_to_string(EGLDisplay display, EGLConfig config)
Definition: egl_utils.cc:126
FlMethodResponse GError ** error
G_BEGIN_DECLS const gchar * egl_error_to_string(EGLint error)
Definition: egl_utils.cc:89