am 4fbb8191
: am caa81f0e
: Merge "make sure to unlock the screenshot\'s buffer on destruction" into jb-mr2-dev
* commit '4fbb8191d8f92230e39f1c4541938d5f18247579': make sure to unlock the screenshot's buffer on destruction
This commit is contained in:
commit
018c4e19b7
@ -170,6 +170,7 @@ private:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
ScreenshotClient();
|
ScreenshotClient();
|
||||||
|
~ScreenshotClient();
|
||||||
|
|
||||||
// frees the previous screenshot and capture a new one
|
// frees the previous screenshot and capture a new one
|
||||||
status_t update(const sp<IBinder>& display);
|
status_t update(const sp<IBinder>& display);
|
||||||
|
@ -627,6 +627,10 @@ ScreenshotClient::ScreenshotClient()
|
|||||||
memset(&mBuffer, 0, sizeof(mBuffer));
|
memset(&mBuffer, 0, sizeof(mBuffer));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ScreenshotClient::~ScreenshotClient() {
|
||||||
|
ScreenshotClient::release();
|
||||||
|
}
|
||||||
|
|
||||||
sp<CpuConsumer> ScreenshotClient::getCpuConsumer() const {
|
sp<CpuConsumer> ScreenshotClient::getCpuConsumer() const {
|
||||||
if (mCpuConsumer == NULL) {
|
if (mCpuConsumer == NULL) {
|
||||||
mCpuConsumer = new CpuConsumer(1);
|
mCpuConsumer = new CpuConsumer(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user