diff options
author | Padmanabhan Komanduru <pkomandu@codeaurora.org> | 2019-03-05 13:27:42 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-04-18 00:43:25 -0700 |
commit | 39b66fe0184d0d26ef13fda4db0ecb006717cdab (patch) | |
tree | a21c96e8547a001905bd962c8389ae593b27720a /sdm/libs/hwc2/hwc_callbacks.cpp | |
parent | 755af6bc02f8b157701cd193e30f44ac54b56af3 (diff) |
hwc2: Avoid drawcycles with non-empty dirty region
--Reject drawcycle if following conditions are met.
1. No change in layerstack attributes.
2. No new buffer latched.
3. No refresh request triggered by HWC.
4. This display is not source of vsync.
--Do not return Present failed error if display is inactive.
SF wouldn't query for release fence upon errors.
CRs-Fixed: 2354696
Change-Id: I28174a09f4b5046d25c953f568f981fdb80b42a8
Diffstat (limited to 'sdm/libs/hwc2/hwc_callbacks.cpp')
-rw-r--r-- | sdm/libs/hwc2/hwc_callbacks.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sdm/libs/hwc2/hwc_callbacks.cpp b/sdm/libs/hwc2/hwc_callbacks.cpp index 92d0f6d3..b26d6331 100644 --- a/sdm/libs/hwc2/hwc_callbacks.cpp +++ b/sdm/libs/hwc2/hwc_callbacks.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2017, The Linux Foundation. All rights reserved. + * Copyright (c) 2016-2017, 2019 The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are @@ -47,6 +47,7 @@ HWC2::Error HWCCallbacks::Refresh(hwc2_display_t display) { return HWC2::Error::NoResources; } refresh_(refresh_data_, display); + pending_refresh_.set(UINT32(display)); return HWC2::Error::None; } |