surfaceflinger: Initialize Description field
We default Description::mIsWideGamut to false in the constructor.
This assures we'll have a consistent value if this field is
referenced prior to setWideGamut() being called.
Test: Built on aosp_arm-eng; a variation of this CL has been in use on an oc-mr1-dev branch with no noticable issues.
Bug: 71642473
Change-Id: Id498b2a87e7eb50f64e0af1533d22c52d9bc0942
diff --git a/services/surfaceflinger/RenderEngine/Description.cpp b/services/surfaceflinger/RenderEngine/Description.cpp
index e014406..e4b1056 100644
--- a/services/surfaceflinger/RenderEngine/Description.cpp
+++ b/services/surfaceflinger/RenderEngine/Description.cpp
@@ -31,6 +31,7 @@
mOpaque = true;
mTextureEnabled = false;
mColorMatrixEnabled = false;
+ mIsWideGamut = false;
}
Description::~Description() {}