Eliminate the usage of ConfigStore in native/libs/gui.
Ideally modules above SurfaceFlinger should query ConfigStore through ISurfaceComposer APIs. Previously Surface::getWideColorSupport directly evaluate wide color support for built-in display, we don't want that, we should align it with SurfaceFlinger. This patch essentially creates an API to allow other modules to query whether a given display is a wide color display. As a result, we must enforce that wide color display board config together with the wide color modes returned from hardware composer. BUG: 123312783 Test: Build, flash and boot. Verify in logcat. Test: SurfaceFlinger_test --gtest_filter=CredentialsTest.IsWideColorDisplay\* Change-Id: I0a5e3cc404e5365343adb0c9efaee8c13cc49cfe
Loading
Please register or sign in to comment