12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #ifndef ANDROID_RS_FIFO_H
- #define ANDROID_RS_FIFO_H
- #include "rsUtils.h"
- namespace android {
- namespace renderscript {
- class Fifo {
- protected:
- Fifo();
- virtual ~Fifo();
- public:
- bool virtual writeAsync(const void *data, size_t bytes, bool waitForSpace = true) = 0;
- void virtual writeWaitReturn(void *ret, size_t retSize) = 0;
- size_t virtual read(void *data, size_t bytes, bool doWait = true, uint64_t timeToWait = 0) = 0;
- void virtual readReturn(const void *data, size_t bytes) = 0;
- void virtual flush() = 0;
- };
- }
- }
- #endif
|