am ad36432d
: Merge "Surface: Permit an IProducerListener on connect"
* commit 'ad36432de81c4c88d726680b7c52e8357df98455': Surface: Permit an IProducerListener on connect
This commit is contained in:
commit
663eaf422d
@ -157,6 +157,7 @@ protected:
|
|||||||
|
|
||||||
virtual int lockBuffer_DEPRECATED(ANativeWindowBuffer* buffer);
|
virtual int lockBuffer_DEPRECATED(ANativeWindowBuffer* buffer);
|
||||||
|
|
||||||
|
virtual int connect(int api, const sp<IProducerListener>& listener);
|
||||||
virtual int connect(int api);
|
virtual int connect(int api);
|
||||||
virtual int disconnect(int api);
|
virtual int disconnect(int api);
|
||||||
virtual int setBufferCount(int bufferCount);
|
virtual int setBufferCount(int bufferCount);
|
||||||
|
@ -547,9 +547,13 @@ int Surface::dispatchSetSidebandStream(va_list args) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int Surface::connect(int api) {
|
int Surface::connect(int api) {
|
||||||
|
static sp<IProducerListener> listener = new DummyProducerListener();
|
||||||
|
return connect(api, listener);
|
||||||
|
}
|
||||||
|
|
||||||
|
int Surface::connect(int api, const sp<IProducerListener>& listener) {
|
||||||
ATRACE_CALL();
|
ATRACE_CALL();
|
||||||
ALOGV("Surface::connect");
|
ALOGV("Surface::connect");
|
||||||
static sp<IProducerListener> listener = new DummyProducerListener();
|
|
||||||
Mutex::Autolock lock(mMutex);
|
Mutex::Autolock lock(mMutex);
|
||||||
IGraphicBufferProducer::QueueBufferOutput output;
|
IGraphicBufferProducer::QueueBufferOutput output;
|
||||||
int err = mGraphicBufferProducer->connect(listener, api, mProducerControlledByApp, &output);
|
int err = mGraphicBufferProducer->connect(listener, api, mProducerControlledByApp, &output);
|
||||||
|
Loading…
Reference in New Issue
Block a user