aboutsummaryrefslogtreecommitdiff
path: root/drm/DrmCrtc.h
diff options
context:
space:
mode:
Diffstat (limited to 'drm/DrmCrtc.h')
-rw-r--r--drm/DrmCrtc.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/drm/DrmCrtc.h b/drm/DrmCrtc.h
index ebf0a97..96443cd 100644
--- a/drm/DrmCrtc.h
+++ b/drm/DrmCrtc.h
@@ -14,8 +14,7 @@
* limitations under the License.
*/
-#ifndef ANDROID_DRM_CRTC_H_
-#define ANDROID_DRM_CRTC_H_
+#pragma once
#include <xf86drmMode.h>
@@ -59,6 +58,10 @@ class DrmCrtc : public PipelineBindable<DrmCrtc> {
return out_fence_ptr_property_;
}
+ auto &GetCtmProperty() const {
+ return ctm_property_;
+ }
+
private:
DrmCrtc(DrmModeCrtcUnique crtc, uint32_t index)
: crtc_(std::move(crtc)), index_in_res_array_(index){};
@@ -67,10 +70,10 @@ class DrmCrtc : public PipelineBindable<DrmCrtc> {
const uint32_t index_in_res_array_;
+ DrmProperty ctm_property_;
+
DrmProperty active_property_;
DrmProperty mode_property_;
DrmProperty out_fence_ptr_property_;
};
} // namespace android
-
-#endif // ANDROID_DRM_CRTC_H_