aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2020-02-07 21:31:08 +0000
committerJohn Stultz <john.stultz@linaro.org>2020-02-11 22:44:00 +0000
commit8c7229dd1357592e63c6a2fe3c5ef80399af92cc (patch)
tree18d9e4d0a221826fc8d8e13c735c830ad2d0eea0 /include
parent582cb32ce5dc1480cb296d6a5031d50eae71b97e (diff)
downloaddrm_hwcomposer-8c7229dd1357592e63c6a2fe3c5ef80399af92cc.tar.gz
drm_hwcomposer: Try to fix build with older Android Pie releases
Try to fix build regressions for P that were introduced with commit b3d81781 ("drm_hwcomposer: Add GetDisplayCapabilities and getDisplayIdentificationData") as noted in issue #30 https://gitlab.freedesktop.org/drm-hwcomposer/drm-hwcomposer/issues/30 Change-Id: I4bfeb952cff19d4c3511ead69df1186d3a04cc87 Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/drmhwctwo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drmhwctwo.h b/include/drmhwctwo.h
index 76e71b0..89ae2f6 100644
--- a/include/drmhwctwo.h
+++ b/include/drmhwctwo.h
@@ -173,11 +173,13 @@ class DrmHwcTwo : public hwc2_device_t {
uint32_t *num_elements, hwc2_layer_t *layers,
int32_t *layer_requests);
HWC2::Error GetDisplayType(int32_t *type);
+#if PLATFORM_SDK_VERSION > 28
HWC2::Error GetDisplayIdentificationData(uint8_t *outPort,
uint32_t *outDataSize,
uint8_t *outData);
HWC2::Error GetDisplayCapabilities(uint32_t *outNumCapabilities,
uint32_t *outCapabilities);
+#endif
HWC2::Error GetDozeSupport(int32_t *support);
HWC2::Error GetHdrCapabilities(uint32_t *num_types, int32_t *types,
float *max_luminance,