diff options
author | 2021-12-29 11:53:36 -0500 | |
---|---|---|
committer | 2022-01-05 15:08:51 -0500 | |
commit | e5cff63e831dfb62478701e39b8f0d2a7fe5e320 (patch) | |
tree | ecdcee7a232c48e0af69ba1392f03234d16e8315 /libs/gui/SurfaceComposerClient.cpp | |
parent | 515f038344603880698e2ae5058858fe3cc429f0 (diff) |
Query the new DisplayCapability for DISPLAY_DECORATION
This allows clients (i.e. SystemUi) to know whether to use
Composition.DISPLAY_DECORATION.
Bug: 193170859
Test: manual
Test: TODO (b/212697197)
Change-Id: I0d3e93bb04937f81e95ef77d196b861621bbdc8d
Diffstat (limited to 'libs/gui/SurfaceComposerClient.cpp')
-rw-r--r-- | libs/gui/SurfaceComposerClient.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/gui/SurfaceComposerClient.cpp b/libs/gui/SurfaceComposerClient.cpp index cf04ec8051..665363627a 100644 --- a/libs/gui/SurfaceComposerClient.cpp +++ b/libs/gui/SurfaceComposerClient.cpp @@ -2218,6 +2218,12 @@ status_t SurfaceComposerClient::setGlobalShadowSettings(const half4& ambientColo lightRadius); } +bool SurfaceComposerClient::getDisplayDecorationSupport(const sp<IBinder>& displayToken) { + bool support = false; + ComposerService::getComposerService()->getDisplayDecorationSupport(displayToken, &support); + return support; +} + int SurfaceComposerClient::getGPUContextPriority() { return ComposerService::getComposerService()->getGPUContextPriority(); } |