summaryrefslogtreecommitdiff
path: root/libs/ui/FramebufferNativeWindow.cpp
diff options
context:
space:
mode:
author Jamie Gennis <jgennis@google.com> 2011-06-26 18:27:47 -0700
committer Jamie Gennis <jgennis@google.com> 2011-06-27 15:45:39 -0700
commit3d8063b02e06020c8062addcc9ec49048d3bdb9a (patch)
tree88acd74f76083e3d9b49bcac724cf60bd43ebfaa /libs/ui/FramebufferNativeWindow.cpp
parent0c4b1e994c3507598e157e67b243d5be00d6cf4f (diff)
SurfaceTexture: change onFrameAvailable behavior
This change alters the conditions under which the onFrameAvailable callback gets called by the C++ SurfaceTexture class. The new behavior is to call the callback whenever a frame gets queued that will be visible to the buffer consumer. This means that buffers queued in synchronous mode always trigger the callback, as those buffers will remain pending until they are consumed. Buffers queued in asynchronous mode will only trigger the callback if there was not previously an unconsumed buffer pending. The new behavior means that a consumer should perform a draw operation exactly once for every onFrameAvailable call that it recieves. This change also modifies SurfaceFlinger and the SurfaceTexture JNI to support of the new behavior. Change-Id: I8b2c6e00961d3d58b11c6af50b555b6e4c5f5b40
Diffstat (limited to 'libs/ui/FramebufferNativeWindow.cpp')
0 files changed, 0 insertions, 0 deletions