SF: Use getVisibleLayers... in doComposeSurfaces
in b/114101122, it is discovered that there is a problem
in indexing the SF mCompositionInfo by displayId because
there are multiple displays that have the same id (-1).
This change uses getVisibleLayersSortedByZ in doComposeSurfaces
until we can fix the indexing of mCompositionInfo.
Bug: 114101122
Test: run cts -m CtsViewTestCases, CtsMediaTestCases
Change-Id: I90adb957c183400c396f25fa9583b668e1da8417
diff --git a/services/surfaceflinger/Layer.h b/services/surfaceflinger/Layer.h
index 9bd28b8..23201aa 100644
--- a/services/surfaceflinger/Layer.h
+++ b/services/surfaceflinger/Layer.h
@@ -503,6 +503,7 @@
}
// -----------------------------------------------------------------------
+ void clearWithOpenGL(const RenderArea& renderArea) const;
inline const State& getDrawingState() const { return mDrawingState; }
inline const State& getCurrentState() const { return mCurrentState; }