Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4ca7a3fc authored by Greg Kaiser's avatar Greg Kaiser
Browse files

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
Merged-In: Id498b2a87e7eb50f64e0af1533d22c52d9bc0942
parent 6f7f629d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ Description::Description() {
    mOpaque = true;
    mTextureEnabled = false;
    mColorMatrixEnabled = false;
    mIsWideGamut = false;

    memset(mColor, 0, sizeof(mColor));
}