output: return current_dpms_value if commit_per_vblank is false 13/160413/1
authorBoram Park <boram1288.park@samsung.com>
Thu, 16 Nov 2017 04:53:25 +0000 (13:53 +0900)
committerBoram Park <boram1288.park@samsung.com>
Thu, 16 Nov 2017 05:33:47 +0000 (14:33 +0900)
commita938b82fd7a7b9fae8484dc8a3156ebf7cfef0b6
treed65bf281405d7446cb28a99425dad42917d6dc0e
parentad16a60799dc5fe99e85931ef835dba6f6793ade
output: return current_dpms_value if commit_per_vblank is false

To use the stored value to reduce the interaction between frontend and backend.
If commit_per_vblank is true, tdm_output_get_dpms_internal calls backend's
output_get_dpms always function to get dpms status. Some backends doesn't
work properly for DPMS.

In future, we'd better use new env instead of using commit_per_vblank variable
to distinguish whether we use the stored value or backend's output_get_dpms.

Change-Id: I464e5d0dee98985e657f6db636b4386258ffaa8e
src/tdm_output.c