diff options
author | 2018-03-14 17:26:31 -0700 | |
---|---|---|
committer | 2018-03-15 21:14:01 +0000 | |
commit | a52f0295622a42849f5ef81c44589b816b2ccacb (patch) | |
tree | fa5b66c2866be26e85f8bbcda940662d55212089 /libs/gui/Surface.cpp | |
parent | 17511b0527cad3a68015c4fef2e0ab451ba2de6f (diff) |
[Native] Replace android_color_mode usage with ColorMode.
To ease the pain when we add color mode v1.1, we replace all current
android_color_mode usage in framework native with ColorMode directly from HAL.
BUG: 73824924
Test: Build & flash
Change-Id: I4436fc225c7807506825c7148bc794cb99f278dc
Diffstat (limited to 'libs/gui/Surface.cpp')
-rw-r--r-- | libs/gui/Surface.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/gui/Surface.cpp b/libs/gui/Surface.cpp index e08d6b0bae..2e1c24b755 100644 --- a/libs/gui/Surface.cpp +++ b/libs/gui/Surface.cpp @@ -326,7 +326,7 @@ status_t Surface::getWideColorSupport(bool* supported) { sp<IBinder> display( composerService()->getBuiltInDisplay(ISurfaceComposer::eDisplayIdMain)); - Vector<android_color_mode_t> colorModes; + Vector<ColorMode> colorModes; status_t err = composerService()->getDisplayColorModes(display, &colorModes); @@ -338,11 +338,11 @@ status_t Surface::getWideColorSupport(bool* supported) { &ISurfaceFlingerConfigs::hasWideColorDisplay>(false); *supported = false; - for (android_color_mode_t colorMode : colorModes) { + for (ColorMode colorMode : colorModes) { switch (colorMode) { - case HAL_COLOR_MODE_DISPLAY_P3: - case HAL_COLOR_MODE_ADOBE_RGB: - case HAL_COLOR_MODE_DCI_P3: + case ColorMode::DISPLAY_P3: + case ColorMode::ADOBE_RGB: + case ColorMode::DCI_P3: if (wideColorBoardConfig) { *supported = true; } |