diff options
| author | 2021-09-23 19:14:57 +0000 | |
|---|---|---|
| committer | 2021-09-23 19:14:57 +0000 | |
| commit | f7f7af94e70a65000e6299d92f7fe7968450ffcd (patch) | |
| tree | cea93e0dd780d156411ce9255e75791a06d594f5 /libs/gui/SurfaceComposerClient.cpp | |
| parent | fb06059fa68095ba9d5e251cffb98a3262fb9027 (diff) | |
| parent | d74454956f31e5ee0fd77a12433f480978abbfb9 (diff) | |
Merge "SF: Temporarily expose primary display id" into sc-v2-dev
Diffstat (limited to 'libs/gui/SurfaceComposerClient.cpp')
| -rw-r--r-- | libs/gui/SurfaceComposerClient.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/gui/SurfaceComposerClient.cpp b/libs/gui/SurfaceComposerClient.cpp index 843e2ffe4a..922bceb191 100644 --- a/libs/gui/SurfaceComposerClient.cpp +++ b/libs/gui/SurfaceComposerClient.cpp @@ -937,6 +937,10 @@ std::vector<PhysicalDisplayId> SurfaceComposerClient::getPhysicalDisplayIds() { return ComposerService::getComposerService()->getPhysicalDisplayIds(); } +status_t SurfaceComposerClient::getPrimaryPhysicalDisplayId(PhysicalDisplayId* id) { + return ComposerService::getComposerService()->getPrimaryPhysicalDisplayId(id); +} + std::optional<PhysicalDisplayId> SurfaceComposerClient::getInternalDisplayId() { return ComposerService::getComposerService()->getInternalDisplayId(); } |