diff options
author | jun.a.jiang@intel.com <jun.a.jiang@intel.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-19 20:46:54 +0000 |
---|---|---|
committer | jun.a.jiang@intel.com <jun.a.jiang@intel.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-19 20:46:54 +0000 |
commit | a4a6bdd1b407ab712a04eacc2feddc1b1df61dfd (patch) | |
tree | 19fc073a2bd7279759403e9c2e88a43cca745db6 /gpu/GLES2/extensions | |
parent | db7ee15d7b5f0c5065b54210d9a42cd8c0fd33a8 (diff) | |
download | chromium_src-a4a6bdd1b407ab712a04eacc2feddc1b1df61dfd.zip chromium_src-a4a6bdd1b407ab712a04eacc2feddc1b1df61dfd.tar.gz chromium_src-a4a6bdd1b407ab712a04eacc2feddc1b1df61dfd.tar.bz2 |
Add a new parameter dest_type to the GL_CHROMIUM_copy_texture extension.
It is used to define the destination texture if needed, which is possible
for texImage2D(..., canvas) and texImage2D(..., video) in WebGL.
BUG=
Review URL: https://chromiumcodereview.appspot.com/13613006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195269 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/GLES2/extensions')
-rw-r--r-- | gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt b/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt index 5d346bc..4cd179f 100644 --- a/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt +++ b/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt @@ -38,16 +38,19 @@ New Procedures and Functions void glCopyTextureCHROMIUM (GLenum target, GLenum source_id, GLenum dest_id, GLint level, - GLint internal_format) + GLint internal_format, GLenum dest_type) Copies the contents of texture referred to by <source_id> to texture <dest_id>. Texture level 0 is copied from the source image to level <level> of the - destination texture. + destination texture. The level parameter must be 0 at present. The internal format of the destination texture is converted to that - specified by <internal_format> + specified by <internal_format>. + + The format type of the destination texture is converted to that specified + by <dest_type>. <target> uses the same parameters as TexImage2D. @@ -80,3 +83,4 @@ New State Revision History 8/1/2011 Documented the extension + 7/4/2013 Add a new parameter dest_type to glCopyTextureCHROMIUM() |