diff options
author | 2022-02-01 15:53:54 -0500 | |
---|---|---|
committer | 2022-02-09 15:51:13 -0500 | |
commit | e7c51c66b971144cae653060c02589441cddb1ad (patch) | |
tree | 408a088695870d44b16a2942f351c022b04c0014 /libs/gui/SurfaceComposerClient.cpp | |
parent | 7c60b886d46e8bf76f19c00130b9bc3d28cd2f6d (diff) |
Update native getDisplayDecorationSupport API
I27f119f927b23052c5fd8f068cbca75338fe7b91 adds new HAL APIs which
provide more detailed info regarding DISPLAY_DECORATION support. Call
the new API and plumb it up to SurfaceComposerClient.
Remove reference to old DisplayCapability.DISPLAY_DECORATION.
Bug: 216644902
Test: manual
Change-Id: I961051c0a660b596039ac04b546040764ee20d34
Diffstat (limited to 'libs/gui/SurfaceComposerClient.cpp')
-rw-r--r-- | libs/gui/SurfaceComposerClient.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/gui/SurfaceComposerClient.cpp b/libs/gui/SurfaceComposerClient.cpp index 91b2fb1c3b..ea73c6d3c3 100644 --- a/libs/gui/SurfaceComposerClient.cpp +++ b/libs/gui/SurfaceComposerClient.cpp @@ -52,6 +52,7 @@ namespace android { +using aidl::android::hardware::graphics::common::DisplayDecorationSupport; using gui::FocusRequest; using gui::IRegionSamplingListener; using gui::WindowInfo; @@ -2239,8 +2240,9 @@ status_t SurfaceComposerClient::setGlobalShadowSettings(const half4& ambientColo lightRadius); } -bool SurfaceComposerClient::getDisplayDecorationSupport(const sp<IBinder>& displayToken) { - bool support = false; +std::optional<DisplayDecorationSupport> SurfaceComposerClient::getDisplayDecorationSupport( + const sp<IBinder>& displayToken) { + std::optional<DisplayDecorationSupport> support; ComposerService::getComposerService()->getDisplayDecorationSupport(displayToken, &support); return support; } |