9 #include "flutter/fml/logging.h"
16 const char* EGLErrorToString(EGLint error) {
20 case EGL_NOT_INITIALIZED:
21 return "Not Initialized";
26 case EGL_BAD_ATTRIBUTE:
27 return "Bad Attribute";
32 case EGL_BAD_CURRENT_SURFACE:
33 return "Bad Current Surface";
40 case EGL_BAD_PARAMETER:
41 return "Bad Parameter";
42 case EGL_BAD_NATIVE_PIXMAP:
43 return "Bad Native Pixmap";
44 case EGL_BAD_NATIVE_WINDOW:
45 return "Bad Native Window";
46 case EGL_CONTEXT_LOST:
47 return "Context Lost";
56 const EGLint error = ::eglGetError();
57 return FML_LOG(ERROR) <<
"EGL Error: " << EGLErrorToString(error) <<
" ("
62 std::stringstream stream;
63 stream <<
"in " << file <<
":" << line;