28 AndroidGraphicsPipe() {
30 _supported_types = OT_window | OT_buffer | OT_texture_buffer;
31 _egl_display =
nullptr;
36 _egl_display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
37 if (!eglInitialize(_egl_display,
nullptr,
nullptr)) {
38 androiddisplay_cat.error()
39 <<
"Couldn't initialize the EGL display: "
43 if (!eglBindAPI(EGL_OPENGL_ES_API)) {
44 androiddisplay_cat.error()
45 <<
"Couldn't bind EGL to the OpenGL ES API: "
56 ~AndroidGraphicsPipe() {
58 if (!eglTerminate(_egl_display)) {
59 androiddisplay_cat.error() <<
"Failed to terminate EGL display: "
90 GraphicsPipe::PreferredWindowThread
102 make_output(
const std::string &name,
118 DCAST_INTO_R(androidgsg, gsg,
nullptr);
124 if (((flags&BF_require_parasite)!=0)||
125 ((flags&BF_refuse_window)!=0)||
126 ((flags&BF_resizeable)!=0)||
127 ((flags&BF_size_track_host)!=0)||
128 ((flags&BF_rtt_cumulative)!=0)||
129 ((flags&BF_can_bind_color)!=0)||
130 ((flags&BF_can_bind_every)!=0)) {