After resource conflict scaler should still be available
to use as some later point. We are protected agains
constant resource conflict, as we should not get resource
when other client has higher priority (e.g we are
suspended).
Bug: https://jira-eu.sec.samsung.net/browse/VDGAME-712
Change-Id: Ifc70874448fc04ce3138d6399e3fb80bbe1648c8
Signed-off-by: Jakub Gajownik <j.gajownik2@samsung.com>
}
void OutputSurfaceState::MarkResourceTaken() {
- state_ = State::kError;
+ // After resource conflict, treat surface as it'd be allocated from the
+ // scratch. It won't be possible in case other client priority is higher
+ // or allocation of this resource is disabled.
+ state_ = State::kNotInitialized;
// Resource has been taken by some other process/client. Remove it from
// surface factory, so clients are not capable of accessing it.