USAGE_IO notifications for new buffers.
bug 8566866
Change-Id: I49767ee902400f09b9b1c174e0fecac5b41e5611
diff --git a/driver/rsdAllocation.h b/driver/rsdAllocation.h
index a3f62a1..97e0d6a 100644
--- a/driver/rsdAllocation.h
+++ b/driver/rsdAllocation.h
@@ -48,6 +48,16 @@
uint32_t renderTargetID;
#ifndef RS_COMPATIBILITY_LIB
+ class NewBufferListener : public android::ConsumerBase::FrameAvailableListener {
+ public:
+ const android::renderscript::Context *rsc;
+ const android::renderscript::Allocation *alloc;
+
+ virtual void onFrameAvailable();
+ };
+ android::sp<NewBufferListener> mBufferListener;
+
+
GLenum glTarget;
GLenum glType;
GLenum glFormat;