replicant-frameworks_native/opengl/libs/EGL
David 'Digit' Turner 80b30c24ff opengl: EGL: special case for GLES emulation
This patch modifies the library loaded in libEGL.so to
handle the case of GLES emulation as follows:

- if we detect that we run inside the emulator, check the
  GPU emulation status through ro.kernel.qemu.gles, which
  will be set to 1 if supported, or 0 otherwise.

  When trying to run on an older version of the emulator,
  the kernel parameter will not be defined at all.

- if GPU emulation is supported, use egl.cfg as usual.
  It will contain a line like "0 0 emulation" that will
  load libEGL_android.so appropriately.

- nothing is changed if we don't run inside the emulator.

NOTE: Ideally, we would modify libEGL_emulation.so to
      redirect all calls to libEGL_android.so in this case.

      However, this turns out to be extremely tedious to implement
      (too many functions with different signatures).

      As such,  it is much simpler to make the check before
      loading the library.

Change-Id: I9930bc168d9013cc8700feedc57b979384467c37
2011-09-02 15:41:13 +02:00
..
egl_display.cpp eglTerminate() now actually frees up all active egl objects 2011-05-16 19:03:33 -07:00
egl_display.h fix x86 build 2011-05-23 17:48:36 -07:00
egl_entries.in Add support for KHR_fence_sync 2010-09-10 14:01:45 -07:00
egl_object.cpp eglTerminate() now actually frees up all active egl objects 2011-05-16 19:03:33 -07:00
egl_object.h EGL: move disconnect to surface dtor 2011-08-24 15:00:23 -07:00
egl_tls.cpp refactor EGL source code 2011-05-16 19:02:45 -07:00
egl_tls.h fix x86 build 2011-05-23 17:48:36 -07:00
egl.cpp this should fix the GL debugger 2011-09-01 14:55:00 -07:00
eglApi.cpp fix logging of eglMakeCurrent() errors 2011-08-25 18:38:24 -07:00
egldefs.h fix x86 build 2011-05-23 17:48:36 -07:00
getProcAddress.cpp fix x86 build 2011-05-23 17:48:36 -07:00
Loader.cpp opengl: EGL: special case for GLES emulation 2011-09-02 15:41:13 +02:00
Loader.h support loading EGL libraries from /vendor/lib/egl as well as /system/lib/egl 2010-09-20 12:58:15 -07:00
trace.cpp fix x86 build 2011-05-23 17:48:36 -07:00