From 4ffbfe61777f1b17d2c853d35467a518b816fc31 Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Tue, 9 Apr 2019 10:10:36 -0400 Subject: [PATCH] Add support for importing GL_R16F for YUVA promise images Change-Id: Id9bfc98e7154dd41f3954c5824a3ab04afce3f50 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/206900 Reviewed-by: Robert Phillips Commit-Queue: Brian Salomon --- src/gpu/gl/GrGLCaps.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp index bbc86fc7e8..d64b288838 100644 --- a/src/gpu/gl/GrGLCaps.cpp +++ b/src/gpu/gl/GrGLCaps.cpp @@ -3242,6 +3242,9 @@ static GrPixelConfig get_yuva_config(GrGLenum format) { case GR_GL_RGB10_A2: config = kRGBA_1010102_GrPixelConfig; break; + case GR_GL_R16F: + config = kAlpha_half_as_Red_GrPixelConfig; + break; } return config;