mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 1060121 - Make WebGLContext::TexImage2D avoid readback for video elements on Windows. r=jgilbert
This commit is contained in:
parent
9ddcab0dc8
commit
9f492bd227
@ -187,6 +187,9 @@ bool
|
||||
GLBlitHelper::InitTexQuadProgram(BlitType target)
|
||||
{
|
||||
const char kTexBlit_VertShaderSource[] = "\
|
||||
#ifdef GL_ES \n\
|
||||
precision mediump float; \n\
|
||||
#endif \n\
|
||||
attribute vec2 aPosition; \n\
|
||||
\n\
|
||||
uniform float uYflip; \n\
|
||||
@ -263,6 +266,9 @@ GLBlitHelper::InitTexQuadProgram(BlitType target)
|
||||
[B] [1.16438, 2.01723, 0.00000] [Cr - 0.50196]
|
||||
*/
|
||||
const char kTexYUVPlanarBlit_FragShaderSource[] = "\
|
||||
#ifdef GL_ES \n\
|
||||
precision mediump float \n\
|
||||
#endif \n\
|
||||
varying vec2 vTexCoord; \n\
|
||||
uniform sampler2D uYTexture; \n\
|
||||
uniform sampler2D uCbTexture; \n\
|
||||
|
Loading…
Reference in New Issue
Block a user