OSDN Git Service

drm_hwcomposer: Check the composition before sending to frame worker
authorSean Paul <seanpaul@chromium.org>
Thu, 19 Nov 2015 18:55:48 +0000 (13:55 -0500)
committerSean Paul <seanpaul@chromium.org>
Fri, 20 Nov 2015 18:09:18 +0000 (13:09 -0500)
commit647beb27af04c33d415c75149c4c93d767693caf
tree06d7ee0854db9854be1fc954731bcde9d075e6f6
parentd51c7617d590c806c53ca3fdbc9428c03261dac1
drm_hwcomposer: Check the composition before sending to frame worker

Before we send a composition to the frame worker and display, run it
through the kernel to test whether it can be put on hardware. If the
kernel rejects the composition, use the squashing code to flatten it
on one layer and send the result to the frame worker.

Bug: 25379136
Test: Tested on smaug, frames were squashed, fun was had

Change-Id: Icac3c034d0eb4c0becbdc0f8ace1de75ab8ae2b8
Signed-off-by: Sean Paul <seanpaul@chromium.org>
drmdisplaycompositor.cpp
drmdisplaycompositor.h