summaryrefslogtreecommitdiffstats
path: root/opengl
diff options
context:
space:
mode:
authorDan Stoza <stoza@google.com>2014-11-04 11:37:46 -0800
committerDan Stoza <stoza@google.com>2014-11-07 10:39:13 -0800
commit8dc55396fc9bc425b5e2c82e76a38080f2a655ff (patch)
tree36dfc0172e525db15531c9074a81096862287edf /opengl
parent793fc0e13d25bdecda1219999f8be2cb3c121d20 (diff)
downloadframeworks_native-8dc55396fc9bc425b5e2c82e76a38080f2a655ff.zip
frameworks_native-8dc55396fc9bc425b5e2c82e76a38080f2a655ff.tar.gz
frameworks_native-8dc55396fc9bc425b5e2c82e76a38080f2a655ff.tar.bz2
Add a BufferItem parameter to onFrameAvailable
Passes the BufferItem for the queued buffer to the onFrameAvailable callback so the consumer can track the BufferQueue's contents. Also adds an onFrameReplaced callback, which is necessary if the consumer wants to do anything more than simple queue length tracking. Bug: 18111837 Change-Id: If9d07229c9b586c668e5f99074e9b63b0468feb0
Diffstat (limited to 'opengl')
-rw-r--r--opengl/tests/EGLTest/EGL_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/opengl/tests/EGLTest/EGL_test.cpp b/opengl/tests/EGLTest/EGL_test.cpp
index a4364c6..d69a275 100644
--- a/opengl/tests/EGLTest/EGL_test.cpp
+++ b/opengl/tests/EGLTest/EGL_test.cpp
@@ -101,7 +101,7 @@ TEST_F(EGLTest, EGLTerminateSucceedsWithRemainingObjects) {
EXPECT_TRUE(eglChooseConfig(mEglDisplay, attrs, &config, 1, &numConfigs));
struct DummyConsumer : public BnConsumerListener {
- virtual void onFrameAvailable() {}
+ virtual void onFrameAvailable(const BufferItem& /* item */) {}
virtual void onBuffersReleased() {}
virtual void onSidebandStreamChanged() {}
};