#include "drmplane.h"
#include "drmresources.h"
+#include <cinttypes>
#include <errno.h>
#include <stdint.h>
: drm_(drm), id_(p->plane_id), possible_crtc_mask_(p->possible_crtcs) {
}
-DrmPlane::~DrmPlane() {
-}
-
int DrmPlane::Init() {
DrmProperty p;
type_ = (uint32_t)type;
break;
default:
- ALOGE("Invalid plane type %d", type);
+ ALOGE("Invalid plane type %" PRIu64, type);
return -EINVAL;
}
if (ret)
ALOGE("Could not get rotation property");
+ ret = drm_->GetPlaneProperty(*this, "alpha", &alpha_property_);
+ if (ret)
+ ALOGI("Could not get alpha property");
+
return 0;
}
const DrmProperty &DrmPlane::rotation_property() const {
return rotation_property_;
}
+
+const DrmProperty &DrmPlane::alpha_property() const {
+ return alpha_property_;
+}
}