summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2011-04-25 20:22:14 -0700
committerMathias Agopian <mathias@google.com>2011-05-11 18:01:51 -0700
commitc04f153353cdb0d291297d10452239f791d3fd2b (patch)
tree97c838689ce1ac22dbbfd895da1f8bfa643a88c1 /opengl/tests/gl_basic/gl_basic.cpp
parentf38ab8b3a46d471dbb3e5835ce4be8d7ea00d06d (diff)
Fix a bug where setgeometry couldn't be undone
This change the binder protocol between SurfaceTextureClient and SurfaceTexture. dequeueBuffer() now takes the requested parameters for the buffer. SurfaceTexture decides if the buffer needs to be reallocated and does the allocation if needed. In that case it returns BUFFER_NEEDS_REALLOCATION to tell SurfaceTextureClient that it needs to call requestBuffer (which all parameters have been removed) to acquire a pointer to the buffer. dequeueBuffer and requestBuffer could be folded into a single IPC call, but we chose to optimize the case where buffers are not created and avoid some complexity in the marshalling code. Change-Id: I097a7f6f40a3491e10f3f3742eab33999286c304
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions