drm_hwcomposer: Tidy-up DrmCrtc class
Implement DrmCrtc instantiation through CreateInstance() static method,
which helps to reduce complexity of DrmDevice::Init() function.
Move CRTC-to-Display binding information to the DrmDevice class.
Move drm/DrmCrtc.h to Normal clang-tidy checks list by fixing
clang-tidy findings.
Signed-off-by: Roman Stratiienko <roman.o.stratiienko@globallogic.com>
diff --git a/compositor/Planner.cpp b/compositor/Planner.cpp
index 24b43ba..d875b4b 100644
--- a/compositor/Planner.cpp
+++ b/compositor/Planner.cpp
@@ -46,7 +46,7 @@
std::vector<DrmPlane *> planes = GetUsablePlanes(crtc, primary_planes,
overlay_planes);
if (planes.empty()) {
- ALOGE("Display %d has no usable planes", crtc->display());
+ ALOGE("Crtc %d has no usable planes", crtc->GetId());
return std::make_tuple(-ENODEV, std::vector<DrmCompositionPlane>());
}