summaryrefslogtreecommitdiff
path: root/opengl/libagl/TextureObjectManager.cpp
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2010-07-27 20:11:35 -0700
committer Mathias Agopian <mathias@google.com> 2010-07-27 20:11:35 -0700
commit51c70e3e41ee8bedc1d951a06a74202dafa13009 (patch)
treed917c80c3421a1312cfefc3e2ca7db25fce62a37 /opengl/libagl/TextureObjectManager.cpp
parenteab07e5c1d48d45f76ac2dd4a45c8a3457aa290d (diff)
fix [2873058] Surface::dequeueBuffer blocks on last buffer, i.e. cannot dequeue all allocated buffers at once.
this situation happened when the last buffer needed to be resized (or allocated, the first time). the assumption was that the buffer was in use by SF itself as the current buffer (obviously, this assumption made no sense when the buffer had never been allocated, btw). the system would wait until some other buffer became the "front" buffer. we fix this problem by entirely removing the requirement that the buffer being resized cannot be the front buffer. instead, we just allocate a new buffer and replace the front buffer by the new one. the downside is that this uses more memory (an extra buffer) for a brief amount of time while the old buffer is being reallocated and before it has actually been replaced. Change-Id: I022e4621209474ceb1c671b23deb4188eaaa7285
Diffstat (limited to 'opengl/libagl/TextureObjectManager.cpp')
0 files changed, 0 insertions, 0 deletions