blob: f23d32db7264b8e68e1863228daa335f017d467c [file] [log] [blame]
#include <gui/CpuConsumer.h>
namespace vncflinger {
class VirtualDisplay {
public:
VirtualDisplay();
virtual void onFrameAvailable(const BufferItem& item);
private:
Mutex mEventMutex;
Condition mEventCond;
bool mFrameAvailable;
// Virtual display
sp<IBinder> mDpy;
// Producer side of queue, passed into the virtual display.
sp<IGraphicBufferProducer> mProducer;
// This receives frames from the virtual display and makes them available
sp<CpuConsumer> mCpuConsumer;
};
};