summaryrefslogtreecommitdiffstats
path: root/gpu/GLES2
diff options
context:
space:
mode:
authordcastagna <dcastagna@chromium.org>2015-09-04 11:47:10 -0700
committerCommit bot <commit-bot@chromium.org>2015-09-04 18:48:35 +0000
commit28bf86ee01379564978c4392bb7f4adc03d3b41a (patch)
tree7751f9619a5151eb8f247b1fe48dcfefd3c9feea /gpu/GLES2
parent1b6ce022daeba5b511782938bab5dac98ea1a541 (diff)
downloadchromium_src-28bf86ee01379564978c4392bb7f4adc03d3b41a.zip
chromium_src-28bf86ee01379564978c4392bb7f4adc03d3b41a.tar.gz
chromium_src-28bf86ee01379564978c4392bb7f4adc03d3b41a.tar.bz2
Allow GL_RGB_YCBCR_422_CHROMIUM in CopyTextureCHROMIUM.
This CL allows us to specify a texture with RGB_YCBCR_422 internal format as source for glCopyTextureCHROMIUM. BUG= Review URL: https://codereview.chromium.org/1316993003 Cr-Commit-Position: refs/heads/master@{#347456}
Diffstat (limited to 'gpu/GLES2')
-rw-r--r--gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt27
1 files changed, 17 insertions, 10 deletions
diff --git a/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt b/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt
index 2223f25..8329a2d 100644
--- a/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt
+++ b/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt
@@ -16,6 +16,7 @@ Dependencies
EXT_texture_format_BGRA8888 affects the definition of this extension.
ARB_texture_rg affects the definition of this extension.
+ CHROMIUM_ycbcr_422_image affects the definition of this extension.
Overview
@@ -51,19 +52,20 @@ New Procedures and Functions
constants: GL_RGB, GL_RGBA
The internal format of <source_id> texture must be one of the following
symbolic constants: GL_R8, GL_ALPHA, GL_LUMINANCE, GL_LUMINANCE_ALPHA,
- GL_RGB, GL_RGBA, GL_BGRA_EXT
+ GL_RGB, GL_RGBA, GL_BGRA_EXT, GL_RGB_YCBCR_422_CHROMIUM
When <source_id> texture doens't contain a superset of the component
required by <internal_format>, fill the components by following rules.
- source format color components
- =================================================
- GL_ALPHA (0, 0, 0, A)
- GL_R8 (R, 0, 0, 1)
- GL_LUMINANCE (L, L, L, 1)
- GL_LUMINANCE_ALPHA (L, L, L, A)
- GL_RGB (R, G, B, 1)
- GL_RGBA (R, G, B, A)
- GL_BGRA_EXT (R, G, B, A)
+ source format color components
+ =====================================================
+ GL_ALPHA (0, 0, 0, A)
+ GL_R8 (R, 0, 0, 1)
+ GL_LUMINANCE (L, L, L, 1)
+ GL_LUMINANCE_ALPHA (L, L, L, A)
+ GL_RGB (R, G, B, 1)
+ GL_RGBA (R, G, B, A)
+ GL_BGRA_EXT (R, G, B, A)
+ GL_RGB_YCBCR_422_CHROMIUM (R, G, B, 1)
The format type of the destination texture is converted to that specified
by <dest_type>.
@@ -153,6 +155,11 @@ Dependencies on ARB_texture_rg
If ARB_texture_rg is not supported:
* delete any reference to the R8 format.
+Dependencies on CHROMIUM_ycbcr_422_image
+
+ If CHROMIUM_ycbcr_422_image is not supported:
+ * delete any reference to the RGB_YCBCR_422_CHROMIUM format.
+
Errors
None.