mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 22:04:26 +00:00
Merge "Add PRESENT_FENCE_IS_NOT_RELIABLE" into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
21c2e11345
@@ -44,6 +44,12 @@ interface IComposer {
|
||||
* applying the color transform during its composition step.
|
||||
*/
|
||||
SKIP_CLIENT_COLOR_TRANSFORM = 2,
|
||||
|
||||
/**
|
||||
* Specifies that the present fence must not be used as an accurate
|
||||
* representation of the actual present time of a frame.
|
||||
*/
|
||||
PRESENT_FENCE_IS_NOT_RELIABLE = 3,
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -65,6 +65,12 @@ HwcHal::HwcHal(const hw_module_t* module)
|
||||
}
|
||||
|
||||
initCapabilities();
|
||||
if (majorVersion >= 2 &&
|
||||
hasCapability(Capability::PRESENT_FENCE_IS_NOT_RELIABLE)) {
|
||||
ALOGE("Present fence must be reliable from HWC2 on.");
|
||||
abort();
|
||||
}
|
||||
|
||||
initDispatch();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user