Sync with new API to start HDCP
When SurfaceFlinger detects a secure surface, it can call this
api to inform HWC to start HDCP negotiations.
Bug: 369161085
Test: manual
Change-Id: Ifce48821ba32c35567d608064c977ecc08fdd5b7
diff --git a/hwc3/ComposerClient.cpp b/hwc3/ComposerClient.cpp
index ebe9a1c..8320997 100644
--- a/hwc3/ComposerClient.cpp
+++ b/hwc3/ComposerClient.cpp
@@ -1259,6 +1259,11 @@
return ToBinderStatus(hwc3::Error::kUnsupported);
}
+ndk::ScopedAStatus ComposerClient::startHdcpNegotiation(
+ int64_t /*display*/, const AidlHdcpLevels& /*levels*/) {
+ return ToBinderStatus(hwc3::Error::kUnsupported);
+}
+
#endif
std::string ComposerClient::Dump() {
diff --git a/hwc3/ComposerClient.h b/hwc3/ComposerClient.h
index 91a0be0..8ca6cfb 100644
--- a/hwc3/ComposerClient.h
+++ b/hwc3/ComposerClient.h
@@ -25,6 +25,7 @@
#include "hwc3/Utils.h"
#include "utils/Mutex.h"
+using AidlHdcpLevels = aidl::android::hardware::drm::HdcpLevels;
using AidlPixelFormat = aidl::android::hardware::graphics::common::PixelFormat;
using AidlNativeHandle = aidl::android::hardware::common::NativeHandle;
@@ -149,6 +150,8 @@
ndk::ScopedAStatus notifyExpectedPresent(
int64_t display, const ClockMonotonicTimestamp& expected_present_time,
int32_t frame_interval_ns) override;
+ ndk::ScopedAStatus startHdcpNegotiation(int64_t display,
+ const AidlHdcpLevels& levels) override;
#endif