Add blankDisplay/unblankDisplay to SurfaceComposerClient.

Bug: 7309812
Change-Id: Ia401d642094a46c62f0d26c65da1d11341e203a1
This commit is contained in:
Jeff Brown 2012-10-08 19:13:57 -07:00
parent cb55857bbd
commit 2a09bb3219
2 changed files with 14 additions and 0 deletions

View File

@ -67,6 +67,12 @@ public:
// Get information about a display
static status_t getDisplayInfo(const sp<IBinder>& display, DisplayInfo* info);
/* triggers screen off and waits for it to complete */
static void blankDisplay(const sp<IBinder>& display);
/* triggers screen on and waits for it to complete */
static void unblankDisplay(const sp<IBinder>& display);
// ------------------------------------------------------------------------
// surface creation / destruction

View File

@ -552,6 +552,14 @@ status_t SurfaceComposerClient::getDisplayInfo(
return ComposerService::getComposerService()->getDisplayInfo(display, info);
}
void SurfaceComposerClient::blankDisplay(const sp<IBinder>& token) {
ComposerService::getComposerService()->blank(token);
}
void SurfaceComposerClient::unblankDisplay(const sp<IBinder>& token) {
ComposerService::getComposerService()->unblank(token);
}
// ----------------------------------------------------------------------------
ScreenshotClient::ScreenshotClient()