Index: gpu/GLES2/extensions/CHROMIUM/CHROMIUM_stream_texture_matrix.txt |
diff --git a/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_stream_texture_matrix.txt b/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_stream_texture_matrix.txt |
new file mode 100644 |
index 0000000000000000000000000000000000000000..80ae76d4d39fb990648b89f555a200b7d5365b6e |
--- /dev/null |
+++ b/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_stream_texture_matrix.txt |
@@ -0,0 +1,58 @@ |
+Name |
+ |
+ CHROMIUM_stream_texture_matrix |
+ |
+Name Strings |
+ |
+ CHROMIUM_stream_texture_matrix |
+ |
+Version |
+ |
+ Last Modifed Date: February 16, 2016 |
+ |
+Dependencies |
+ |
+ OpenGL ES 2.0 is required. |
+ |
+Overview |
+ |
+ Allows clients to set the value of a 4x4 unform to the current texture |
+ matrix of a stream texture. |
+ |
+ Allows shader access to the texture matrix for the current front buffer |
+ of a stream texture. Intended for use with Android SurfaceTexture, which |
+ doesn't provide the value until the front buffer is latched. |
+ |
+New Procedures and Functions |
+ |
+ The command |
+ |
+ void UniformMatrix4fvWithStreamTextureMatrixCHROMIUM( |
reveman
2016/02/18 20:20:56
Removing "With" would make the name a bit more GL-
liberato (no reviews please)
2016/02/19 18:39:55
Done.
|
+ GLintUniformLocation location, |
+ GLbooleanFalseOnly transpose, |
+ const GLfloat* default_value) |
+ |
+ Updates a uniform to match the current stream texture's texture matrix. |
+ The stream texture must be bound to the GL_TEXTURE_EXTERNAL_OES target on |
+ the active texture unit. |
+ |
+ If the bound texture is not a stream texture, then the default value is |
+ used instead. |
+ |
+ <location> Specifies the 4x4f uniform location to be modified. |
+ <transpose> Specifies whether the matrix should be transposed. |
+ <default_value> Provides the default matrix. |
+ |
+ The default value is a transitionary step. It will be removed. |
+ |
+Errors |
+ |
+ None. |
+ |
+New State |
+ |
+ None. |
+ |
+Revision History |
+ |
+ 02/16/2016 Documented the extension |