[vulkan] AHB support: Make relevant functions custom
am: 4af5f32bca

Change-Id: I0a83bd3ff604245226f2f7c4b885f44c2e252d01
diff --git a/system/egl/egl.cpp b/system/egl/egl.cpp
index c5e27ed..c7794d7 100644
--- a/system/egl/egl.cpp
+++ b/system/egl/egl.cpp
@@ -1994,8 +1994,10 @@
             case HAL_PIXEL_FORMAT_RGB_565:
             case HAL_PIXEL_FORMAT_YV12:
             case HAL_PIXEL_FORMAT_BGRA_8888:
+#if PLATFORM_SDK_VERSION >= 26
             case HAL_PIXEL_FORMAT_RGBA_FP16:
             case HAL_PIXEL_FORMAT_RGBA_1010102:
+#endif
                 break;
             default:
                 setErrorReturn(EGL_BAD_PARAMETER, EGL_NO_IMAGE_KHR);