summaryrefslogtreecommitdiffstats
path: root/include/gui
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2014-10-08 16:50:13 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-10-08 16:50:13 +0000
commitb7702c5ce7f010fa5f19646fd79f28ff04e7014b (patch)
treea136f4b0d5d05108b444f9315c9df2231b5b28e8 /include/gui
parent5acc751ffea2fab38f7fcc4e06866640e70174e4 (diff)
parent99a0afbaee9eddabc2b544e3a5c432901c1d498c (diff)
downloadframeworks_native-b7702c5ce7f010fa5f19646fd79f28ff04e7014b.zip
frameworks_native-b7702c5ce7f010fa5f19646fd79f28ff04e7014b.tar.gz
frameworks_native-b7702c5ce7f010fa5f19646fd79f28ff04e7014b.tar.bz2
Merge "BufferQueueProducer: Throttle EGL frame production." into lmp-mr1-dev
Diffstat (limited to 'include/gui')
-rw-r--r--include/gui/BufferQueueProducer.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/gui/BufferQueueProducer.h b/include/gui/BufferQueueProducer.h
index 3fc5de2..c619a11 100644
--- a/include/gui/BufferQueueProducer.h
+++ b/include/gui/BufferQueueProducer.h
@@ -197,6 +197,12 @@ private:
uint32_t mStickyTransform;
+ // This saves the fence from the last queueBuffer, such that the
+ // next queueBuffer call can throttle buffer production. The prior
+ // queueBuffer's fence is not nessessarily available elsewhere,
+ // since the previous buffer might have already been acquired.
+ sp<Fence> mLastQueueBufferFence;
+
}; // class BufferQueueProducer
} // namespace android