Loading include/gui/GLConsumer.h +3 −0 Original line number Diff line number Diff line Loading @@ -85,6 +85,9 @@ public: // purely to allow a GLConsumer to be transferred from one consumer // context to another. If such a transfer is not needed there is no // requirement that either of these methods be called. GLConsumer(const sp<BufferQueue>& bq, GLuint tex, GLenum texTarget = GL_TEXTURE_EXTERNAL_OES, bool useFenceSync = true); GLConsumer(GLuint tex, bool allowSynchronousMode = true, GLenum texTarget = GL_TEXTURE_EXTERNAL_OES, bool useFenceSync = true, const sp<BufferQueue> &bufferQueue = 0); Loading libs/gui/GLConsumer.cpp +7 −0 Original line number Diff line number Diff line Loading @@ -78,6 +78,13 @@ static float mtxRot90[16] = { static void mtxMul(float out[16], const float a[16], const float b[16]); GLConsumer::GLConsumer(const sp<BufferQueue>& bq, GLuint tex, GLenum texTarget, bool useFenceSync) : ConsumerBase(bq), mUseFenceSync(useFenceSync), mTexTarget(texTarget) {} GLConsumer::GLConsumer(GLuint tex, bool allowSynchronousMode, GLenum texTarget, bool useFenceSync, const sp<BufferQueue> &bufferQueue) : ConsumerBase(bufferQueue == 0 ? new BufferQueue(allowSynchronousMode) : bufferQueue), Loading Loading
include/gui/GLConsumer.h +3 −0 Original line number Diff line number Diff line Loading @@ -85,6 +85,9 @@ public: // purely to allow a GLConsumer to be transferred from one consumer // context to another. If such a transfer is not needed there is no // requirement that either of these methods be called. GLConsumer(const sp<BufferQueue>& bq, GLuint tex, GLenum texTarget = GL_TEXTURE_EXTERNAL_OES, bool useFenceSync = true); GLConsumer(GLuint tex, bool allowSynchronousMode = true, GLenum texTarget = GL_TEXTURE_EXTERNAL_OES, bool useFenceSync = true, const sp<BufferQueue> &bufferQueue = 0); Loading
libs/gui/GLConsumer.cpp +7 −0 Original line number Diff line number Diff line Loading @@ -78,6 +78,13 @@ static float mtxRot90[16] = { static void mtxMul(float out[16], const float a[16], const float b[16]); GLConsumer::GLConsumer(const sp<BufferQueue>& bq, GLuint tex, GLenum texTarget, bool useFenceSync) : ConsumerBase(bq), mUseFenceSync(useFenceSync), mTexTarget(texTarget) {} GLConsumer::GLConsumer(GLuint tex, bool allowSynchronousMode, GLenum texTarget, bool useFenceSync, const sp<BufferQueue> &bufferQueue) : ConsumerBase(bufferQueue == 0 ? new BufferQueue(allowSynchronousMode) : bufferQueue), Loading