drm_hwcomposer: Use hwc3 version 3
Add stubs for new APIs. Bump the version number in the manifest
fragment.
Update Docker configuration to use new aospless tarball that contains
the required build dependencies for hwc3 v3.
Change-Id: I521f649c2f820f54bc3c6adcda8e17d5ab3112e1
Signed-off-by: Drew Davenport <ddavenport@google.com>
diff --git a/hwc3/ComposerClient.cpp b/hwc3/ComposerClient.cpp
index e12a236..a3e5ebc 100644
--- a/hwc3/ComposerClient.cpp
+++ b/hwc3/ComposerClient.cpp
@@ -931,6 +931,39 @@
return ToBinderStatus(hwc3::Error::kUnsupported);
}
+ndk::ScopedAStatus ComposerClient::getOverlaySupport(
+ OverlayProperties* /*out_overlay_properties*/) {
+ return ToBinderStatus(hwc3::Error::kUnsupported);
+}
+
+ndk::ScopedAStatus ComposerClient::getHdrConversionCapabilities(
+ std::vector<common::HdrConversionCapability>* /*out_capabilities*/) {
+ return ToBinderStatus(hwc3::Error::kUnsupported);
+}
+
+ndk::ScopedAStatus ComposerClient::setHdrConversionStrategy(
+ const common::HdrConversionStrategy& /*conversion_strategy*/,
+ common::Hdr* /*out_hdr*/) {
+ return ToBinderStatus(hwc3::Error::kUnsupported);
+}
+
+ndk::ScopedAStatus ComposerClient::setRefreshRateChangedCallbackDebugEnabled(
+ int64_t /*display*/, bool /*enabled*/) {
+ return ToBinderStatus(hwc3::Error::kUnsupported);
+}
+
+ndk::ScopedAStatus ComposerClient::getDisplayConfigurations(
+ int64_t display, int32_t max_frame_interval_ns,
+ std::vector<DisplayConfiguration>* configurations) {
+ return ToBinderStatus(hwc3::Error::kUnsupported);
+}
+
+ndk::ScopedAStatus ComposerClient::notifyExpectedPresent(
+ int64_t /*display*/, const ClockMonotonicTimestamp& /*expected_present_time*/,
+ int32_t /*frame_interval_ns*/) {
+ return ToBinderStatus(hwc3::Error::kUnsupported);
+}
+
std::string ComposerClient::Dump() {
uint32_t size = 0;
hwc_->Dump(&size, nullptr);
diff --git a/hwc3/ComposerClient.h b/hwc3/ComposerClient.h
index 616f8aa..f6362ad 100644
--- a/hwc3/ComposerClient.h
+++ b/hwc3/ComposerClient.h
@@ -136,6 +136,21 @@
ndk::ScopedAStatus setVsyncEnabled(int64_t display, bool enabled) override;
ndk::ScopedAStatus setIdleTimerEnabled(int64_t display,
int32_t timeout) override;
+ ndk::ScopedAStatus getOverlaySupport(
+ OverlayProperties* out_overlay_properties) override;
+ ndk::ScopedAStatus getHdrConversionCapabilities(
+ std::vector<common::HdrConversionCapability>* out_capabilities) override;
+ ndk::ScopedAStatus setHdrConversionStrategy(
+ const common::HdrConversionStrategy& conversion_strategy,
+ common::Hdr* out_hdr) override;
+ ndk::ScopedAStatus setRefreshRateChangedCallbackDebugEnabled(
+ int64_t display, bool enabled) override;
+ ndk::ScopedAStatus getDisplayConfigurations(
+ int64_t display, int32_t max_frame_interval_ns,
+ std::vector<DisplayConfiguration>* configurations) override;
+ ndk::ScopedAStatus notifyExpectedPresent(
+ int64_t display, const ClockMonotonicTimestamp& expected_present_time,
+ int32_t frame_interval_ns) override;
protected:
::ndk::SpAIBinder createBinder() override;
diff --git a/hwc3/hwc3-drm.xml b/hwc3/hwc3-drm.xml
index 05a7c09..911f7f8 100644
--- a/hwc3/hwc3-drm.xml
+++ b/hwc3/hwc3-drm.xml
@@ -1,7 +1,7 @@
<manifest version="1.0" type="device">
<hal format="aidl">
<name>android.hardware.graphics.composer3</name>
- <version>1</version>
+ <version>3</version>
<interface>
<name>IComposer</name>
<instance>default</instance>