summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/RenderThread.cpp
diff options
context:
space:
mode:
authorDerek Sollenberger <djsollen@google.com>2018-08-15 10:14:08 -0400
committerDerek Sollenberger <djsollen@google.com>2018-08-15 10:17:45 -0400
commit333a83c02f67527d8d15e545d9e9e24fe162edd4 (patch)
tree95ed4da96e20f97f46e0a94c3ac805aa0894e763 /libs/hwui/renderthread/RenderThread.cpp
parentd42decc7af77743a1101407aef0370ff85e1b643 (diff)
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
Diffstat (limited to 'libs/hwui/renderthread/RenderThread.cpp')
-rw-r--r--libs/hwui/renderthread/RenderThread.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/renderthread/RenderThread.cpp b/libs/hwui/renderthread/RenderThread.cpp
index 3eaf43b65f69..c1284ec02655 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(GrContext::MakeGL(std::move(glInterface), options));