summaryrefslogtreecommitdiffstats
path: root/cmds/screenrecord/FrameOutput.h
diff options
context:
space:
mode:
authorDan Stoza <stoza@google.com>2014-11-04 11:32:52 -0800
committerDan Stoza <stoza@google.com>2014-11-04 11:32:52 -0800
commit04f101c35eaa90b1f95939afac30674ec1611e6f (patch)
tree638649883fdc1e7329b9334b5a1a7461b7421942 /cmds/screenrecord/FrameOutput.h
parent151b3f41ffcdf187580542ba0c0d3b84df16beed (diff)
downloadframeworks_av-04f101c35eaa90b1f95939afac30674ec1611e6f.zip
frameworks_av-04f101c35eaa90b1f95939afac30674ec1611e6f.tar.gz
frameworks_av-04f101c35eaa90b1f95939afac30674ec1611e6f.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. Bug: 18111837 Change-Id: If9d07229c9b586c668e5f99074e9b63b0468feb0
Diffstat (limited to 'cmds/screenrecord/FrameOutput.h')
-rw-r--r--cmds/screenrecord/FrameOutput.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/screenrecord/FrameOutput.h b/cmds/screenrecord/FrameOutput.h
index c49ec3b..4c0c3be 100644
--- a/cmds/screenrecord/FrameOutput.h
+++ b/cmds/screenrecord/FrameOutput.h
@@ -62,7 +62,7 @@ private:
}
// (overrides GLConsumer::FrameAvailableListener method)
- virtual void onFrameAvailable();
+ virtual void onFrameAvailable(const BufferItem& item);
// Reduces RGBA to RGB, in place.
static void reduceRgbaToRgb(uint8_t* buf, unsigned int pixelCount);