drm_hwcomposer: Move trivial frontend functions out of HwcDisplay class
Another step towards full frontend/backend split.
Change-Id: I854da4344bc9973cc5f076230c2baee0c46f2276
Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
diff --git a/hwc3/ComposerClient.cpp b/hwc3/ComposerClient.cpp
index dbcf575..ca89706 100644
--- a/hwc3/ComposerClient.cpp
+++ b/hwc3/ComposerClient.cpp
@@ -715,7 +715,7 @@
}
if (command.acceptDisplayChanges) {
- display->AcceptDisplayChanges();
+ display->AcceptValidatedComposition();
}
if (command.presentDisplay) {
@@ -1283,17 +1283,10 @@
return ToBinderStatus(hwc3::Error::kUnsupported);
}
-ndk::ScopedAStatus ComposerClient::setAutoLowLatencyMode(int64_t display_id,
- bool on) {
+ndk::ScopedAStatus ComposerClient::setAutoLowLatencyMode(int64_t /*display_id*/,
+ bool /*on*/) {
DEBUG_FUNC();
- const std::unique_lock lock(hwc_->GetResMan().GetMainLock());
- HwcDisplay* display = GetDisplay(display_id);
- if (display == nullptr) {
- return ToBinderStatus(hwc3::Error::kBadDisplay);
- }
-
- auto error = Hwc2toHwc3Error(display->SetAutoLowLatencyMode(on));
- return ToBinderStatus(error);
+ return ToBinderStatus(hwc3::Error::kUnsupported);
}
ndk::ScopedAStatus ComposerClient::setClientTargetSlotCount(