summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Foss <robert.foss@collabora.com>2016-10-20 11:07:57 -0400
committerRobert Foss <robert.foss@collabora.com>2017-03-22 14:38:43 -0400
commit397e501dfbddbeb87b8278fbb501e9af501cdcc4 (patch)
tree64479744d7a3e61f96ddadefd16676722fbaf8ff
parentadad1c00aeee00e03a1abc3c7336b66652cf41ba (diff)
downloaddrm_hwcomposer-397e501dfbddbeb87b8278fbb501e9af501cdcc4.tar.gz
drm_hwcomposer-397e501dfbddbeb87b8278fbb501e9af501cdcc4.tar.xz
drm_hwcomposer: Add GetCrtcCount function
Change-Id: I93d7916805890a28bd649ac179478ac7b8ee6814 Signed-off-by: Robert Foss <robert.foss@collabora.com>
-rw-r--r--drmresources.cpp4
-rw-r--r--drmresources.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/drmresources.cpp b/drmresources.cpp
index 762f5ef..0578cc6 100644
--- a/drmresources.cpp
+++ b/drmresources.cpp
@@ -241,6 +241,10 @@ DrmPlane *DrmResources::GetPlane(uint32_t id) const {
return NULL;
}
+uint32_t DrmResources::GetCrtcCount() const {
+ return (uint32_t) crtcs_.size();
+}
+
uint32_t DrmResources::next_mode_id() {
return ++mode_id_;
}
diff --git a/drmresources.h b/drmresources.h
index a2d8d16..0cc2456 100644
--- a/drmresources.h
+++ b/drmresources.h
@@ -66,6 +66,7 @@ class DrmResources {
int GetConnectorProperty(const DrmConnector &connector, const char *prop_name,
DrmProperty *property);
+ uint32_t GetCrtcCount() const;
uint32_t next_mode_id();
int CreatePropertyBlob(void *data, size_t length, uint32_t *blob_id);