aboutsummaryrefslogtreecommitdiff
path: root/system/hwc2/DisplayConfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'system/hwc2/DisplayConfig.h')
-rw-r--r--system/hwc2/DisplayConfig.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/system/hwc2/DisplayConfig.h b/system/hwc2/DisplayConfig.h
index f7502d70..67e4c49e 100644
--- a/system/hwc2/DisplayConfig.h
+++ b/system/hwc2/DisplayConfig.h
@@ -60,6 +60,9 @@ class DisplayConfig {
int32_t getDpiY() const { return mDpiY; }
void setDpiY(int32_t dpi) { mDpiY = dpi; }
+ int32_t getDotsPerThousandInchesX() const { return mDpiX * 1000; }
+ int32_t getDotsPerThousandInchesY() const { return mDpiY * 1000; }
+
int32_t getVsyncPeriod() const { return mVsyncPeriodNanos; }
void setVsyncPeriod(int32_t vsync) { mVsyncPeriodNanos = vsync; }