| OLD | NEW |
| 1 Name | 1 Name |
| 2 | 2 |
| 3 CHROMIUM_image | 3 CHROMIUM_image |
| 4 | 4 |
| 5 Name Strings | 5 Name Strings |
| 6 | 6 |
| 7 GL_CHROMIUM_image | 7 GL_CHROMIUM_image |
| 8 | 8 |
| 9 Version | 9 Version |
| 10 | 10 |
| 11 Last Modifed Date: Oct 7, 2014 | 11 Last Modifed Date: Oct 7, 2014 |
| 12 | 12 |
| 13 Dependencies | 13 Dependencies |
| 14 | 14 |
| 15 OpenGL ES 2.0 is required. | 15 OpenGL ES 2.0 is required. |
| 16 | 16 |
| 17 EXT_texture_format_BGRA8888 affects the definition of this extension. |
| 18 |
| 17 Overview | 19 Overview |
| 18 | 20 |
| 19 This extension defines a new resource type that is suitable for | 21 This extension defines a new resource type that is suitable for |
| 20 sharing 2D arrays of image data between client APIs. | 22 sharing 2D arrays of image data between client APIs. |
| 21 | 23 |
| 22 Issues | 24 Issues |
| 23 | 25 |
| 24 None | 26 None |
| 25 | 27 |
| 26 New Tokens | 28 New Tokens |
| 27 | 29 |
| 28 None | 30 None |
| 29 | 31 |
| 30 New Procedures and Functions | 32 New Procedures and Functions |
| 31 | 33 |
| 32 GLuint CreateImageCHROMIUM(ClientBuffer buffer, | 34 GLuint CreateImageCHROMIUM(ClientBuffer buffer, |
| 33 GLsizei width, | 35 GLsizei width, |
| 34 GLsizei height, | 36 GLsizei height, |
| 35 GLenum internalformat) | 37 GLenum internalformat) |
| 36 | 38 |
| 37 Create an image from <buffer> with width equal to <width> and | 39 Create an image from <buffer> with width equal to <width> and |
| 38 height equal to <height> and format equal to <internalformat>. | 40 height equal to <height> and format equal to <internalformat>. |
| 39 | 41 |
| 40 Returns a unique identifier for the image that could be used in | 42 Returns a unique identifier for the image that could be used in |
| 41 subsequent operations. | 43 subsequent operations. |
| 42 | 44 |
| 43 INVALID_VALUE is generated if <width> or <height> is nonpositive. | 45 INVALID_VALUE is generated if <width> or <height> is nonpositive. |
| 44 | 46 |
| 45 INVALID_ENUM is generated if <internalformat> is not one of | 47 INVALID_ENUM is generated if <internalformat> is not one of |
| 46 RGB or RGBA. | 48 RGB, RGBA or GL_BGRA_EXT. |
| 47 | 49 |
| 48 void DestroyImageCHROMIUM(GLuint image_id) | 50 void DestroyImageCHROMIUM(GLuint image_id) |
| 49 | 51 |
| 50 Frees the image previously created by a call to CreateImageCHROMIUM. | 52 Frees the image previously created by a call to CreateImageCHROMIUM. |
| 51 | 53 |
| 52 INVALID_OPERATION is generated if <image_id> is not a valid image id. | 54 INVALID_OPERATION is generated if <image_id> is not a valid image id. |
| 53 | 55 |
| 56 Dependencies on EXT_texture_format_BGRA8888 |
| 57 |
| 58 If EXT_texture_format_BGRA8888 is not supported: |
| 59 * delete any reference to the GL_BGRA_EXT format. |
| 60 |
| 54 Errors | 61 Errors |
| 55 | 62 |
| 56 None. | 63 None. |
| 57 | 64 |
| 58 New State | 65 New State |
| 59 | 66 |
| 60 None. | 67 None. |
| 61 | 68 |
| 62 Revision History | 69 Revision History |
| 63 | 70 |
| 64 5/9/2013 Documented the extension | 71 5/9/2013 Documented the extension |
| 65 4/30/2014 Moved usage flag to creation function. | 72 4/30/2014 Moved usage flag to creation function. |
| 66 10/7/2014 Remove map/unmap API. | 73 10/7/2014 Remove map/unmap API. |
| 74 4/6/2015 Add GL_BGRA_EXT format. |
| OLD | NEW |