Changes

Jump to: navigation, search

Platform/GFX/Gralloc

3 bytes added, 20:22, 16 May 2013
Drawing from Gralloc buffers (binding to GL textures)
It is worth noting that there are two levels of locking involved here.
As GrallocTextureHostOGL::Lock is called, it calls fEGLImageTargetTexture2D (as explained above) which immediately result results in placing a read lock on the gralloc buffer. When a subsequent GL drawing operation occurs, sampling from that texture, it that will then also place a read lock on the gralloc buffer, this time from the GL kernel driver.
It is vital that these two read locks get released as soon as possible, as we won't be able to draw again into the gralloc buffer (which requires a write lock) until then.
Confirm
753
edits

Navigation menu