Add Y8Cb8Cr8_420 to the list of supported formats in eglCreateImageKHR

CTS/AHardwareBufferNativeTests calls with eglCreateImageKHR the
HAL_PIXEL_FORMAT_YCBCR_420_888 format. We need to suport this
format to pass the tests:

CtsNativeHardwareTestCases
  android.hardware.nativehardware.cts.AHardwareBufferNativeTests
    SingleLayer_ColorTest_CpuWriteColorGpuRead_Y8Cb8Cr8_420
    SingleLayer_ColorTest_GpuColorOutputIsRenderable_Y8Cb8Cr8_420

Bug: 127994833
Bug: 127994634
Test: run cts -m CtsNativeHardwareTestCases -t android.hardware.nativehardware.cts.AHardwareBufferNativeTests
Change-Id: I73a605e55ab86b8e16bae755c0424d9e68f35d6a
Signed-off-by: Roman Kiryanov <rkir@google.com>
diff --git a/system/egl/egl.cpp b/system/egl/egl.cpp
index 3e4698f..b0b510b 100644
--- a/system/egl/egl.cpp
+++ b/system/egl/egl.cpp
@@ -2002,6 +2002,9 @@
             case HAL_PIXEL_FORMAT_RGBA_FP16:
             case HAL_PIXEL_FORMAT_RGBA_1010102:
 #endif
+#if PLATFORM_SDK_VERSION >= 28
+            case HAL_PIXEL_FORMAT_YCBCR_420_888:
+#endif
                 break;
             default:
                 setErrorReturn(EGL_BAD_PARAMETER, EGL_NO_IMAGE_KHR);