emulator opengl: moved gralloc buffer handle struct to be shared.
We need to share the cb_hande_t between gralloc/EGL/GLES, moved it into the opengl system common lib. Also added eglSwapBuffers implementation. Change-Id: Ia461a48c273af42293aafcf084e457adf03cbed3
This commit is contained in:
committed by
Guy Zadikario
parent
dd0a3777bc
commit
c36ac6ed2f
@@ -168,7 +168,7 @@ bool eglDisplay::initialize(EGLClient_eglInterface *eglIface)
|
||||
}
|
||||
|
||||
//Copy the actual configs data to m_configs
|
||||
memcpy(m_configs, tmp_buf + m_numConfigAttribs*sizeof(EGLint), m_numConfigs*sizeof(EGLint));
|
||||
memcpy(m_configs, tmp_buf + m_numConfigAttribs, m_numConfigs*sizeof(EGLint));
|
||||
|
||||
m_initialized = true;
|
||||
}
|
||||
@@ -367,6 +367,9 @@ const char *eglDisplay::queryString(EGLint name)
|
||||
}
|
||||
}
|
||||
|
||||
/* To get the value of attribute <a> of config <c> use the following formula:
|
||||
* value = *(m_configs + (int)c*m_numConfigAttribs + a);
|
||||
*/
|
||||
EGLBoolean eglDisplay::getAttribValue(EGLConfig config, EGLint attribIdx, EGLint * value)
|
||||
{
|
||||
if (attribIdx == ATTRIBUTE_NONE)
|
||||
|
||||
Reference in New Issue
Block a user