RMX1851: Use phase offsets as duration

In Android R, the SurfaceFlinger calculate phase offsets
based on duration. Adopt the new way of specifying
phase offsets to SurfaceFlinger.

Bug: 158464992
Test: scrolling, app launching/closing, playing video
Change-Id: Ia717f5c0075b6adaedaf20dd6be689737edc1415
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
This commit is contained in:
Redick Lin 2020-09-19 18:02:36 +05:30 committed by GiaSen
parent 7777658b00
commit 3be848dca8

View file

@ -28,10 +28,14 @@ PRODUCT_PRODUCT_PROPERTIES += \
debug.sf.enable_hwc_vds=1 \
debug.sf.disable_backpressure=1 \
debug.sf.latch_unsignaled=1 \
debug.sf.early_app_phase_offset_ns=1500000 \
debug.sf.early_gl_phase_offset_ns=3000000 \
debug.sf.early_gl_app_phase_offset_ns=15000000 \
debug.sf.early_phase_offset_ns=1500000
debug.sf.use_phase_offsets_as_durations=1 \
debug.sf.late.sf.duration=10500000 \
debug.sf.late.app.duration=20500000 \
debug.sf.early.sf.duration=21000000 \
debug.sf.early.app.duration=16500000 \
debug.sf.earlyGl.sf.duration=13500000 \
debug.sf.earlyGl.app.duration=21000000 \
ro.surface_flinger.max_frame_buffer_acquired_buffers=3
# Media
PRODUCT_PRODUCT_PROPERTIES += \
@ -43,12 +47,6 @@ PRODUCT_PRODUCT_PROPERTIES += \
persist.dbg.vt_avail_ovr=1 \
persist.dbg.wfc_avail_ovr=1
# Surfaceflinger
PRODUCT_PRODUCT_PROPERTIES += \
ro.surface_flinger.max_frame_buffer_acquired_buffers=3 \
ro.surface_flinger.vsync_event_phase_offset_ns=2000000 \
ro.surface_flinger.vsync_sf_event_phase_offset_ns=6000000
# WiFi Display
PRODUCT_PRODUCT_PROPERTIES += \
debug.sf.enable_hwc_vds=1 \