replicant-frameworks_native/opengl
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
..
include EGL: update EGL_ANDROID_recordable extension. 2011-07-17 18:42:09 -07:00
libagl implement EGL_TEXTURE_EXTERNAL_OES in libagl 2011-08-18 16:26:21 -07:00
libagl2 Remove the simulator target from all makefiles. 2011-07-11 22:12:16 -07:00
libs opengl: EGL: special case for GLES emulation 2011-09-02 15:41:13 +02:00
specs EGL: update EGL_ANDROID_recordable extension. 2011-07-17 18:42:09 -07:00
tests fix test-opengl-swapinterval 2011-08-15 15:25:40 -07:00
tools/glgen Kill the global references in the OpenGL wrappers. 2011-04-11 15:31:20 -07:00