Steve Kondik | 961b4cc | 2017-06-22 18:10:50 -0700 | [diff] [blame^] | 1 | #include <gui/CpuConsumer.h> |
| 2 | |
| 3 | namespace vncflinger { |
| 4 | |
| 5 | class 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 | }; |