Add system property to allow GPU composition to occur at a lower resolution
Add a vendor-specified system property to allow GPU fallback composition to occur at a lower resolution than the display mode resolution. This is required on platforms like TVs which have, for example, 2k GPUs but 4k capabilities, or 4k GPUs but 8k capabilities.
Bug: 144574809
Test: Tested with sysprop disabled, and tested backport in Android Q with sysprop enabled. Unable to test on Android R due to device issues.
Change-Id: Ife63c21a6e959d16e796d57956dd7dda2f5d383e
diff --git a/private/property_contexts b/private/property_contexts
index e542a73..1977fff 100644
--- a/private/property_contexts
+++ b/private/property_contexts
@@ -773,6 +773,8 @@
ro.surface_flinger.has_HDR_display u:object_r:exported_default_prop:s0 exact bool
ro.surface_flinger.has_wide_color_display u:object_r:exported_default_prop:s0 exact bool
ro.surface_flinger.max_frame_buffer_acquired_buffers u:object_r:exported_default_prop:s0 exact int
+ro.surface_flinger.max_graphics_height u:object_r:exported_default_prop:s0 exact int
+ro.surface_flinger.max_graphics_width u:object_r:exported_default_prop:s0 exact int
ro.surface_flinger.max_virtual_display_dimension u:object_r:exported_default_prop:s0 exact int
ro.surface_flinger.primary_display_orientation u:object_r:exported_default_prop:s0 exact string
ro.surface_flinger.present_time_offset_from_vsync_ns u:object_r:exported_default_prop:s0 exact int