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

Commit acec0b1c authored by Gil Dekel's avatar Gil Dekel
Browse files

DualDisplayTransactionTest: init ID vars via getters

When adding a FlagManager check in DisplayIdentification, and then a
test in HWCompserTest.cpp, a linker order issue arose where
DualDisplayTransactionTest's static variable initialization is dependent
on FlagManager, which did not have a chance to initialize its own
globals yet.

In addition, it turns out that  the aconfig flagging library itself
generates a global (provider_) with undefined state.

In the meantime, to solve this, we initialize kInnerDisplayId and
kOuterDisplayId constants statically via getter methods instead of
during initialization of DualDisplayTransactionTest's object.

Flag: EXEMPT refactor
Bug: 421192173
Test: libsurfaceflinger_test
Change-Id: I4aef05def1ed7d9f85d1606076994a23993601e8
parent e6abd70b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment