blob: f23d32db7264b8e68e1863228daa335f017d467c [file] [log] [blame]
Steve Kondik961b4cc2017-06-22 18:10:50 -07001#include <gui/CpuConsumer.h>
2
3namespace vncflinger {
4
5class VirtualDisplay {
6 public:
7 VirtualDisplay();
8
9 virtual void onFrameAvailable(const BufferItem& item);
10
11 private:
12 Mutex mEventMutex;
13 Condition mEventCond;
14
15 bool mFrameAvailable;
16
17 // Virtual display
18 sp<IBinder> mDpy;
19
20 // Producer side of queue, passed into the virtual display.
21 sp<IGraphicBufferProducer> mProducer;
22
23 // This receives frames from the virtual display and makes them available
24 sp<CpuConsumer> mCpuConsumer;
25};
26};