aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatvii Zorin <matvii.zorin@globallogic.com>2020-07-27 18:35:39 +0300
committerMatvii Zorin <matvii.zorin@globallogic.com>2020-08-26 14:22:24 +0300
commite0e7c5cf7f300ce66c556b68c7a03b7d5d66b420 (patch)
tree8c045ad130c97b9b548a49db866a595de207830c
parent0ddc329b2585584806951705319461aa05ef9d49 (diff)
downloaddrm_hwcomposer-e0e7c5cf7f300ce66c556b68c7a03b7d5d66b420.tar.gz
drm_hwcomposer: Move DrmHwcTwo internal classes outside private section
Making backend-validation for HwcDisplay is required access to the internal class outside DrmHwcTwo. There is no need to keep other internal classes in the private section in this case. Signed-off-by: Matvii Zorin <matvii.zorin@globallogic.com>
-rw-r--r--include/drmhwctwo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drmhwctwo.h b/include/drmhwctwo.h
index 62ee85a..5f9f6c5 100644
--- a/include/drmhwctwo.h
+++ b/include/drmhwctwo.h
@@ -40,7 +40,6 @@ class DrmHwcTwo : public hwc2_device_t {
HWC2::Error Init();
- private:
class HwcLayer {
public:
HWC2::Composition sf_type() const {
@@ -299,6 +298,7 @@ class DrmHwcTwo : public hwc2_device_t {
DrmDevice *drm_;
};
+ private:
static DrmHwcTwo *toDrmHwcTwo(hwc2_device_t *dev) {
return static_cast<DrmHwcTwo *>(dev);
}