emulator opengl: pool of fixups to the host side.

Those are the host side fixups required for the system to load
without failure to the point of bootanimation is run.

Change-Id: I42eebb123b05aaf6a0671e91e77a4ba6b330b852
This commit is contained in:
Stas Gurtovoy
2011-06-01 11:01:22 +03:00
committed by Guy Zadickario
parent 3f5c95553a
commit 613025efb3
16 changed files with 170 additions and 18 deletions

View File

@@ -123,12 +123,11 @@ WindowSurface *WindowSurface::create(int p_config, int p_width, int p_height)
}
//
// setColorBuffer - this function is called when a new color buffer needs to
// be attached to the surface. The function should make sure that the
// flushColorBuffer - The function makes sure that the
// previous attached color buffer is updated, if copy or blit should be done
// in order to update it - it is being done here.
//
void WindowSurface::setColorBuffer(ColorBufferPtr p_colorBuffer)
void WindowSurface::flushColorBuffer()
{
if (m_attachedColorBuffer.Ptr() != NULL) {
@@ -143,9 +142,18 @@ void WindowSurface::setColorBuffer(ColorBufferPtr p_colorBuffer)
}
}
else {
//TODO: EGLImage
}
}
}
//
// setColorBuffer - this function is called when a new color buffer needs to
// be attached to the surface. The function doesn't make sure that the
// previous attached color buffer is updated, this is done by flushColorBuffer
//
void WindowSurface::setColorBuffer(ColorBufferPtr p_colorBuffer)
{
m_attachedColorBuffer = p_colorBuffer;
}
@@ -226,5 +234,4 @@ void WindowSurface::copyToColorBuffer()
s_egl.eglMakeCurrent(fb->getDisplay(), prevDrawSurf,
prevReadSurf, prevContext);
free(data);
}