diff options
Diffstat (limited to 'hwc3/impl/HalImpl.cpp')
-rw-r--r-- | hwc3/impl/HalImpl.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/hwc3/impl/HalImpl.cpp b/hwc3/impl/HalImpl.cpp index 45dfa32..f79073b 100644 --- a/hwc3/impl/HalImpl.cpp +++ b/hwc3/impl/HalImpl.cpp @@ -536,6 +536,16 @@ int32_t HalImpl::presentDisplay(int64_t display, ndk::ScopedFileDescriptor& fenc ExynosDisplay* halDisplay; RET_IF_ERR(getHalDisplay(display, halDisplay)); + // TODO: not expect acceptDisplayChanges if there are no changes to accept + if (halDisplay->mRenderingState == RENDERING_STATE_VALIDATED) { + LOG(INFO) << halDisplay->mDisplayName.string() + << ": acceptDisplayChanges was not called"; + if (halDisplay->acceptDisplayChanges() != HWC2_ERROR_NONE) { + LOG(ERROR) << halDisplay->mDisplayName.string() + << ": acceptDisplayChanges is failed"; + } + } + int32_t hwcFence; RET_IF_ERR(halDisplay->presentDisplay(&hwcFence)); h2a::translate(hwcFence, fence); |