diff options
author | Zach Reizner <zachr@google.com> | 2015-11-18 13:54:31 -0800 |
---|---|---|
committer | Zach Reizner <zachr@google.com> | 2015-11-18 13:57:42 -0800 |
commit | 2b4b1eea6b7075efe356af8bb2e948201635c5c2 (patch) | |
tree | 6312f845ef2079d04925192c73bd99c75c3047a7 | |
parent | f1acc6d72d61e3347c1a765ecad6b13a378d89a0 (diff) | |
download | drm_hwcomposer-2b4b1eea6b7075efe356af8bb2e948201635c5c2.tar.gz |
drm_hwcomposer: during SquashAll, skip layers with kSourceNone
This complicates returning layers to the active composition on failure. They
will not go back in the correct order and this will confuse all subsequent
attempts to use the active composition.
Change-Id: Iab6fae7b4a88f97206bac08237d574ff1bfd802f
-rw-r--r-- | drmdisplaycompositor.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drmdisplaycompositor.cpp b/drmdisplaycompositor.cpp index e6f23ff..773b696 100644 --- a/drmdisplaycompositor.cpp +++ b/drmdisplaycompositor.cpp @@ -1018,6 +1018,9 @@ int DrmDisplayCompositor::SquashAll() { goto move_layers_back; } + if (comp_plane.source_layer == DrmCompositionPlane::kSourceNone) + continue; + // Out of range layers should never happen. If they do, somebody probably // forgot to replace the symbolic names (kSourceSquash, kSourcePreComp) with // real ones. |