Flutter Engine
 
Loading...
Searching...
No Matches
flutter::egl Namespace Reference

Classes

class  Context
 
class  Manager
 
class  ProcTable
 
class  Surface
 
class  WindowSurface
 

Enumerations

enum class  GpuPreference {
  NoPreference ,
  LowPowerPreference
}
 

Functions

void LogEGLError (std::string_view message)
 Log the last EGL error with an error message.
 
void LogEGLError (std::string_view file, int line)
 Log the last EGL error.
 

Enumeration Type Documentation

◆ GpuPreference

enum class flutter::egl::GpuPreference
strong
Enumerator
NoPreference 
LowPowerPreference 

Definition at line 32 of file manager.h.

32 {
35};
@ LowPowerPreference
@ NoPreference

Function Documentation

◆ LogEGLError() [1/2]

void flutter::egl::LogEGLError ( std::string_view  file,
int  line 
)

Log the last EGL error.

Definition at line 61 of file egl.cc.

61 {
62 std::stringstream stream;
63 stream << "in " << file << ":" << line;
64 LogEGLError(stream.str());
65}

References impeller::egl::LogEGLError().

◆ LogEGLError() [2/2]

void flutter::egl::LogEGLError ( std::string_view  message)

Log the last EGL error with an error message.

Definition at line 55 of file egl.cc.

55 {
56 const EGLint error = ::eglGetError();
57 return FML_LOG(ERROR) << "EGL Error: " << EGLErrorToString(error) << " ("
58 << error << ") " << message;
59}
G_BEGIN_DECLS GBytes * message
const uint8_t uint32_t uint32_t GError ** error
#define FML_LOG(severity)
Definition logging.h:101

References impeller::egl::EGLErrorToString(), error, FML_LOG, and message.

Referenced by flutter::egl::Manager::CreateWindowSurface().