Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3931)

Unified Diff: cc/output/shader.cc

Issue 1947333002: Add support for GL_TEXTURE_EXTERNAL_OES NV12 textures in cc/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/resources/video_resource_updater.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/shader.cc
diff --git a/cc/output/shader.cc b/cc/output/shader.cc
index 2adc9a7e1fd7247290d63a41d6fb78a3bbac4b5a..5df5a3c4d3f8b4ab7ff50717c4653733e8c0fe49 100644
--- a/cc/output/shader.cc
+++ b/cc/output/shader.cc
@@ -133,7 +133,8 @@ static std::string SetFragmentSamplerType(SamplerType requested_type,
case SAMPLER_TYPE_EXTERNAL_OES:
DCHECK_NE(shader_string.find("SamplerType"), std::string::npos);
DCHECK_NE(shader_string.find("TextureLookup"), std::string::npos);
- return "#extension GL_OES_EGL_image_external : require\n"
+ return "#extension GL_OES_EGL_image_external : enable\n"
+ "#extension GL_NV_EGL_stream_consumer_external : enable\n"
"#define SamplerType samplerExternalOES\n"
"#define TextureLookup texture2D\n" +
shader_string;
« no previous file with comments | « no previous file | cc/resources/video_resource_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698