summaryrefslogtreecommitdiff
path: root/drmmode.h
diff options
context:
space:
mode:
authorStéphane Marchesin <marcheu@chromium.org>2015-07-05 02:00:08 -0700
committerStéphane Marchesin <marcheu@chromium.org>2015-07-13 15:18:27 -0700
commitb74e08cc80325883bf4561e11cec0e83f0863728 (patch)
tree3ebea2ddf816c9a02691c0e72f2be59ff8126525 /drmmode.h
parent9099aa5e280c094154fd312f415336c1aabb4b8e (diff)
downloaddrm_hwcomposer-b74e08cc80325883bf4561e11cec0e83f0863728.tar.gz
drm_hwcomposer-b74e08cc80325883bf4561e11cec0e83f0863728.tar.xz
drm_hwcomposer: Convert v_refresh() to float
We convert v_refresh() to return a float and instead of storing it, compute it on the fly from the pixel clock + htotal/vtotal. This makes the synthetic vblank computation much more accurate. Change-Id: I2a0becf75eaca8ace30d176fdc813f3b57ba23a5
Diffstat (limited to 'drmmode.h')
-rw-r--r--drmmode.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drmmode.h b/drmmode.h
index ab213ef..3088b7a 100644
--- a/drmmode.h
+++ b/drmmode.h
@@ -48,7 +48,7 @@ class DrmMode {
uint32_t v_sync_end() const;
uint32_t v_total() const;
uint32_t v_scan() const;
- uint32_t v_refresh() const;
+ float v_refresh() const;
uint32_t flags() const;
uint32_t type() const;
@@ -71,7 +71,6 @@ class DrmMode {
uint32_t v_sync_end_;
uint32_t v_total_;
uint32_t v_scan_;
- uint32_t v_refresh_;
uint32_t flags_;
uint32_t type_;