Loading include/gui/SurfaceComposerClient.h +1 −0 Original line number Diff line number Diff line Loading @@ -170,6 +170,7 @@ private: public: ScreenshotClient(); ~ScreenshotClient(); // frees the previous screenshot and capture a new one status_t update(const sp<IBinder>& display); Loading libs/gui/SurfaceComposerClient.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -627,6 +627,10 @@ ScreenshotClient::ScreenshotClient() memset(&mBuffer, 0, sizeof(mBuffer)); } ScreenshotClient::~ScreenshotClient() { ScreenshotClient::release(); } sp<CpuConsumer> ScreenshotClient::getCpuConsumer() const { if (mCpuConsumer == NULL) { mCpuConsumer = new CpuConsumer(1); Loading Loading
include/gui/SurfaceComposerClient.h +1 −0 Original line number Diff line number Diff line Loading @@ -170,6 +170,7 @@ private: public: ScreenshotClient(); ~ScreenshotClient(); // frees the previous screenshot and capture a new one status_t update(const sp<IBinder>& display); Loading
libs/gui/SurfaceComposerClient.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -627,6 +627,10 @@ ScreenshotClient::ScreenshotClient() memset(&mBuffer, 0, sizeof(mBuffer)); } ScreenshotClient::~ScreenshotClient() { ScreenshotClient::release(); } sp<CpuConsumer> ScreenshotClient::getCpuConsumer() const { if (mCpuConsumer == NULL) { mCpuConsumer = new CpuConsumer(1); Loading