am 2a09bb32
: Add blankDisplay/unblankDisplay to SurfaceComposerClient.
* commit '2a09bb321930e1f782599ec902bca1db58b9af77': Add blankDisplay/unblankDisplay to SurfaceComposerClient.
This commit is contained in:
commit
e3a8cd4db1
@ -67,6 +67,12 @@ public:
|
|||||||
// Get information about a display
|
// Get information about a display
|
||||||
static status_t getDisplayInfo(const sp<IBinder>& display, DisplayInfo* info);
|
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
|
// surface creation / destruction
|
||||||
|
|
||||||
|
@ -552,6 +552,14 @@ status_t SurfaceComposerClient::getDisplayInfo(
|
|||||||
return ComposerService::getComposerService()->getDisplayInfo(display, info);
|
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()
|
ScreenshotClient::ScreenshotClient()
|
||||||
|
Loading…
Reference in New Issue
Block a user