HDR: Use SDR settings for gamma 2.2 in createEglSurface

PiperOrigin-RevId: 496768072
This commit is contained in:
huangdarwin 2022-12-20 23:31:21 +00:00 committed by Tianyi Feng
parent 99b665ca3f
commit 06ccb6e8ed

View File

@ -293,7 +293,7 @@ public final class GlUtil {
throws GlException {
int[] configAttributes;
int[] windowAttributes;
if (colorTransfer == C.COLOR_TRANSFER_SDR) {
if (colorTransfer == C.COLOR_TRANSFER_SDR || colorTransfer == C.COLOR_TRANSFER_GAMMA_2_2) {
configAttributes = EGL_CONFIG_ATTRIBUTES_RGBA_8888;
windowAttributes = EGL_WINDOW_SURFACE_ATTRIBUTES_NONE;
} else if (colorTransfer == C.COLOR_TRANSFER_ST2084) {