diff options
author | Mathias Agopian <mathias@google.com> | 2010-07-26 21:14:59 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2010-07-26 21:14:59 -0700 |
commit | 3ad6c442441615802121ff87641534fb438226c9 (patch) | |
tree | 477f3c72f82e9e5f7c6f492f7e73e4226ac23a42 /opengl/java | |
parent | eab07e5c1d48d45f76ac2dd4a45c8a3457aa290d (diff) | |
download | frameworks_base-3ad6c442441615802121ff87641534fb438226c9.zip frameworks_base-3ad6c442441615802121ff87641534fb438226c9.tar.gz frameworks_base-3ad6c442441615802121ff87641534fb438226c9.tar.bz2 |
fix [2870926] Issue 9802: EGL wrapper has not been implemented correctly for eglQuerySurface().
rework how our EGL wrapper manages EGLConfig:
- we now store the EGLConfig with the EGLSurface and EGLContext
so that we can have easy access to it from eglQueryContext
and eglQuerySurface.
- EGLConfig now are an index into a sorted table of egl_config_t,
we use a binary search to retrieve our EGLConfig (the index) from
the implementation's EGLConfig.
- egl_config_t keeps track of the implementation's index,
EGLConfig and CONFIG_ID as well as our CONFIG_ID.
In many ways, this implementation is simpler and more robust, as it doesn't
assume anything about the number of implementations nor what EGLConfig is
made of (the previous code assumed EGLConfig didn't usem more than 24-bits).
Change-Id: Id5abe923aacb6e1fd2b63bd8c15d7b04ae824922
Diffstat (limited to 'opengl/java')
0 files changed, 0 insertions, 0 deletions