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

Unified Diff: gpu/GLES2/extensions/CHROMIUM/CHROMIUM_stream_texture_matrix.txt

Issue 1559203003: Add GLStreamTextureImage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed enum, added GLStreamTextureImage : GLImage. Created 4 years, 10 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
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

Powered by Google App Engine
This is Rietveld 408576698