diff --git a/impeller/toolkit/egl/config.h b/impeller/toolkit/egl/config.h index 37de0e1374485..6690ee2db6f67 100644 --- a/impeller/toolkit/egl/config.h +++ b/impeller/toolkit/egl/config.h @@ -35,6 +35,7 @@ enum class StencilBits { enum class DepthBits { kZero = 0, kEight = 8, + kTwentyFour = 24, }; enum class SurfaceType { diff --git a/shell/platform/android/android_context_gl_impeller.cc b/shell/platform/android/android_context_gl_impeller.cc index 79091a108f9c1..c497565c7f6d8 100644 --- a/shell/platform/android/android_context_gl_impeller.cc +++ b/shell/platform/android/android_context_gl_impeller.cc @@ -94,7 +94,7 @@ AndroidContextGLImpeller::AndroidContextGLImpeller( impeller::egl::ConfigDescriptor desc; desc.api = impeller::egl::API::kOpenGLES2; desc.color_format = impeller::egl::ColorFormat::kRGBA8888; - desc.depth_bits = impeller::egl::DepthBits::kZero; + desc.depth_bits = impeller::egl::DepthBits::kTwentyFour; desc.stencil_bits = impeller::egl::StencilBits::kEight; desc.samples = impeller::egl::Samples::kFour; diff --git a/shell/platform/android/android_context_gl_impeller_unittests.cc b/shell/platform/android/android_context_gl_impeller_unittests.cc index 6d8243e8dd2cb..509c8df6f0bb0 100644 --- a/shell/platform/android/android_context_gl_impeller_unittests.cc +++ b/shell/platform/android/android_context_gl_impeller_unittests.cc @@ -38,6 +38,8 @@ bool GetEGLConfigForSurface(EGLint surface_bit, EGLConfig* result) { EGL_GREEN_SIZE, 8, EGL_BLUE_SIZE, 8, EGL_ALPHA_SIZE, 8, + EGL_DEPTH_SIZE, 24, + EGL_STENCIL_SIZE, 8, EGL_NONE, // clang-format on };