From 333a83c02f67527d8d15e545d9e9e24fe162edd4 Mon Sep 17 00:00:00 2001 From: Derek Sollenberger Date: Wed, 15 Aug 2018 10:14:08 -0400 Subject: [PATCH] Prefer ES 2.0 with external image support vs ES 3.0 without that support We currently attempt to use ES 3.0 shaders even if it lacks the extension for external images. This CL reverts back to ES 2.0 in the event that we find that the OES_EGL_image_external_essl3 is not present. Test: no change in graphics output Bug: 111220579 Change-Id: I6bd7145026d9686cfcf49393a19580208db8a367 --- libs/hwui/renderthread/RenderThread.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/hwui/renderthread/RenderThread.cpp b/libs/hwui/renderthread/RenderThread.cpp index 3eaf43b65f695..c1284ec02655f 100644 --- a/libs/hwui/renderthread/RenderThread.cpp +++ b/libs/hwui/renderthread/RenderThread.cpp @@ -189,6 +189,7 @@ void RenderThread::requireGlContext() { LOG_ALWAYS_FATAL_IF(!glInterface.get()); GrContextOptions options; + options.fPreferExternalImagesOverES3 = true; options.fDisableDistanceFieldPaths = true; cacheManager().configureContext(&options); sk_sp grContext(GrContext::MakeGL(std::move(glInterface), options));