Skip invisible layers in the composition layer dump

Task layers changed from container to effect layer which means they now
have a composition state. However In most cases they are invisible since
they do not render any effects.

Test: adb shell dumpsys SurfaceFlinger

Change-Id: I26de63ae7f1554caf961da066f05d4e1d5ad28c5
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index fbebea0..86eba3e 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -4497,7 +4497,7 @@
         StringAppendF(&result, "Composition layers\n");
         mDrawingState.traverseInZOrder([&](Layer* layer) {
             auto* compositionState = layer->getCompositionState();
-            if (!compositionState) return;
+            if (!compositionState || !compositionState->isVisible) return;
 
             android::base::StringAppendF(&result, "* Layer %p (%s)\n", layer,
                                          layer->getDebugName() ? layer->getDebugName()