aboutsummaryrefslogtreecommitdiff
path: root/drm/DrmFbImporter.cpp
AgeCommit message (Collapse)Author
2022-01-31drm_hwcomposer: Tidy-up DrmDevice classRoman Stratiienko
1. Move drm/DrmConnector.h to Normal clang-tidy checks list by fixing clang-tidy findings. 2. Remove DrmDevice self-reference. 3. Replace shared_ptr reference to DrmDevice in DrmFbImporter with a pointer, making ResourceManager only owner of DrmDevice and its chilren. Signed-off-by: Roman Stratiienko <roman.o.stratiienko@globallogic.com>
2022-01-20drm_hwcomposer: CI: Upgrade to clang-13 && clang-tidy-13Roman Stratiienko
+ address new clang-tidy findings. Signed-off-by: Roman Stratiienko <roman.o.stratiienko@globallogic.com>
2021-12-07drm_hwcomposer: Fix all cases which triggers an error on -Wsign-compareRoman Stratiienko
Android-9 has -Wsign-compare enabled by default and it causes build issues. Enable -Wsign-compare option in CI, so we won't introduce such issues anymore. Signed-off-by: Roman Stratiienko <roman.o.stratiienko@globallogic.com>
2021-08-25drm_hwcomposer: Don't close same handle several times.Roman Stratiienko
Video (YUV) frames can have several planes in the same buffer, in this case all the planes will be represented by the same gem_handle, which must be closed only once. Fixes logcat noise during video playback. Reported-by: John Stultz <john.stultz@linaro.org> Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
2021-05-19drm_hwcomposer: cleanup hwcutilsRoman Stratiienko
Remove DrmHwcBuffer class. Wrap remaining logic into DrmHwcLayer class. Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
2021-05-19drm_hwcomposer: Tracking of the DRM FB objects using RAIIRoman Stratiienko
DRM framebuffer objects must be kept registered in DRM/KMS while used for scanning-out (After atomic commit applied for processing by display controller and until next atomic commit is applied for processing). Existing logic for tracking current state is overcomplicated and needs to be redesigned. Also further developing of drm_hwc will require migration to asynchronous atomic commit, so additional asynchronous FB cleanup logic must be created. Buffer caching logic will also benefit from this. With the RAII all further changes will be less painful and more robust. By this commit I also renamed DrmGenericImporter to DrmFbImporter: 'Fb' word is present in most of existing composers (android and linux) so it will be easier to compare different implementations. Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>