OSDN Git Service

drm_hwcomposer: Run test commit only when it actually needed
authorMatvii Zorin <matvii.zorin@globallogic.com>
Mon, 6 Apr 2020 16:03:03 +0000 (19:03 +0300)
committerMatvii Zorin <matvii.zorin@globallogic.com>
Wed, 1 Jul 2020 10:18:42 +0000 (13:18 +0300)
commitfdcdeabd7e50f2ff005333b135c1d0b440296a85
tree19b23ca4ccd04b69ae72483f5caa0af6601d5900
parent3f17bc0953a6efae769c26ba116a7e936303315c
drm_hwcomposer: Run test commit only when it actually needed

Composition testing is expensive. We do not need to spend CPU time when:

* All layers are marked as a client.

The patch skips CommitFrame function called by the ValidateDisplay
method in this case.

Signed-off-by: Matvii Zorin <matvii.zorin@globallogic.com>
drmhwctwo.cpp