summaryrefslogtreecommitdiff
path: root/drmdisplaycomposition.cpp
diff options
context:
space:
mode:
authorSean Paul <seanpaul@chromium.org>2015-09-21 10:04:02 -0400
committerSean Paul <seanpaul@chromium.org>2015-09-21 10:08:37 -0400
commitbdc67bffcffaa838836b1111f6dcf07cba5ff134 (patch)
tree84efb110a3bed0f95d9cff1459ec2f8470814ca2 /drmdisplaycomposition.cpp
parent26fc2c21a055d0ef1bb85fe205d977bd1822769a (diff)
downloaddrm_hwcomposer-bdc67bffcffaa838836b1111f6dcf07cba5ff134.tar.gz
drm_hwcomposer-bdc67bffcffaa838836b1111f6dcf07cba5ff134.tar.xz
drm_hwcomposer: Plumb frame number through display composition
Having frame number in the composition is very useful for debugging transient issues, plumb it through the drm compositor stack. Change-Id: Ibc7555c89bea79c580b3201b11db4ced6360efb9 Signed-off-by: Sean Paul <seanpaul@chromium.org>
Diffstat (limited to 'drmdisplaycomposition.cpp')
-rw-r--r--drmdisplaycomposition.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/drmdisplaycomposition.cpp b/drmdisplaycomposition.cpp
index 465a318..c1848e0 100644
--- a/drmdisplaycomposition.cpp
+++ b/drmdisplaycomposition.cpp
@@ -74,7 +74,8 @@ DrmDisplayComposition::DrmDisplayComposition()
timeline_current_(0),
timeline_pre_comp_done_(0),
pre_composition_layer_index_(-1),
- dpms_mode_(DRM_MODE_DPMS_ON) {
+ dpms_mode_(DRM_MODE_DPMS_ON),
+ frame_no_(0) {
}
DrmDisplayComposition::~DrmDisplayComposition() {
@@ -100,10 +101,11 @@ DrmDisplayComposition::~DrmDisplayComposition() {
}
int DrmDisplayComposition::Init(DrmResources *drm, DrmCrtc *crtc,
- Importer *importer) {
+ Importer *importer, uint64_t frame_no) {
drm_ = drm;
crtc_ = crtc; // Can be NULL if we haven't modeset yet
importer_ = importer;
+ frame_no_ = frame_no;
int ret = hw_get_module(GRALLOC_HARDWARE_MODULE_ID,
(const hw_module_t **)&gralloc_);
@@ -372,6 +374,10 @@ uint32_t DrmDisplayComposition::dpms_mode() const {
return dpms_mode_;
}
+uint64_t DrmDisplayComposition::frame_no() const {
+ return frame_no_;
+}
+
Importer *DrmDisplayComposition::importer() const {
return importer_;
}