diff options
author | Dan Stoza <stoza@google.com> | 2014-05-02 15:26:25 -0700 |
---|---|---|
committer | Dan Stoza <stoza@google.com> | 2014-05-05 16:45:26 -0700 |
commit | 7f7da32569f8e0b3d383a40b95f8ac1d55afd801 (patch) | |
tree | 447e2fe85342ab3be8df946d40e4574905104df7 /include/gui/SurfaceComposerClient.h | |
parent | 39c5e9f87670a8bc543a716ac994c8c85ac94cd5 (diff) | |
download | frameworks_native-7f7da32569f8e0b3d383a40b95f8ac1d55afd801.zip frameworks_native-7f7da32569f8e0b3d383a40b95f8ac1d55afd801.tar.gz frameworks_native-7f7da32569f8e0b3d383a40b95f8ac1d55afd801.tar.bz2 |
Enable changing display configuration
This allows querying and switching display device configurations
through the ISurfaceComposer/SurfaceComposerClient interface.
Bug: 14320401
Change-Id: I8c22165698950e5da32204c1c4da92122f91a715
Diffstat (limited to 'include/gui/SurfaceComposerClient.h')
-rw-r--r-- | include/gui/SurfaceComposerClient.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/include/gui/SurfaceComposerClient.h b/include/gui/SurfaceComposerClient.h index 6a53ccb..c2192af 100644 --- a/include/gui/SurfaceComposerClient.h +++ b/include/gui/SurfaceComposerClient.h @@ -66,8 +66,21 @@ public: status_t linkToComposerDeath(const sp<IBinder::DeathRecipient>& recipient, void* cookie = NULL, uint32_t flags = 0); - // Get information about a display - static status_t getDisplayInfo(const sp<IBinder>& display, DisplayInfo* info); + // Get a list of supported configurations for a given display + static status_t getDisplayConfigs(const sp<IBinder>& display, + Vector<DisplayInfo>* configs); + + // Get the DisplayInfo for the currently-active configuration + static status_t getDisplayInfo(const sp<IBinder>& display, + DisplayInfo* info); + + // Get the index of the current active configuration (relative to the list + // returned by getDisplayInfo) + static int getActiveConfig(const sp<IBinder>& display); + + // Set a new active configuration using an index relative to the list + // returned by getDisplayInfo + static status_t setActiveConfig(const sp<IBinder>& display, int id); /* triggers screen off and waits for it to complete */ static void blankDisplay(const sp<IBinder>& display); |