Commit dd519d3b authored by Vikas Soni's avatar Vikas Soni Committed by Commit Bot

Set fPreferExternalImagesOverES3 to true.

Set GrContextOptions::fPreferExternalImagesOverES3 to true
which causes Skia to use ES2 instead of ES3 if
GL_OES_EGL_image_external_essl3 is not available and
GL_OES_EGL_image_external is available.

Bug: 1031383,1104891
Change-Id: I87c2e35e4f1ae95a4882a275d3aceb416c47bd0e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2296875Reviewed-by: default avatarKhushal <khushalsagar@chromium.org>
Commit-Queue: vikas soni <vikassoni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#788507}
parent bc12f733
...@@ -265,6 +265,7 @@ bool SharedContextState::InitializeGrContext( ...@@ -265,6 +265,7 @@ bool SharedContextState::InitializeGrContext(
options.fShaderErrorHandler = this; options.fShaderErrorHandler = this;
if (gpu_preferences.force_max_texture_size) if (gpu_preferences.force_max_texture_size)
options.fMaxTextureSizeOverride = gpu_preferences.force_max_texture_size; options.fMaxTextureSizeOverride = gpu_preferences.force_max_texture_size;
options.fPreferExternalImagesOverES3 = true;
owned_gr_context_ = GrContext::MakeGL(std::move(interface), options); owned_gr_context_ = GrContext::MakeGL(std::move(interface), options);
gr_context_ = owned_gr_context_.get(); gr_context_ = owned_gr_context_.get();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment