Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / gpu / GLES2 / extensions / CHROMIUM / CHROMIUM_gpu_memory_buffer_image.txt
blob9f4d09d286eee60270b3d0d2ae7214540eb78719
1 Name
3     CHROMIUM_gpu_memory_buffer_image
5 Name Strings
7     GL_CHROMIUM_gpu_memory_buffer_image
9 Version
11     Last Modifed Date: Sep 29, 2014
13 Dependencies
15     OpenGL ES 2.0 is required.
17     GL_CHROMIUM_image is required.
19 Overview
21     This extension provide a mechanism for creating a GpuMemoryBuffer
22     backed image resource.
24 Issues
26     None
28 New Tokens
30     Accepted by the <usage> parameter of CreateGpuMemoryBufferImageCHROMIUM:
32         MAP_CHROMIUM 0x78F1
33         SCANOUT_CHROMIUM 0x78F2
35 New Procedures and Functions
37     GLuint CreateGpuMemoryBufferImageCHROMIUM(GLsizei width,
38                                               GLsizei height,
39                                               GLenum internalformat,
40                                               GLenum usage)
42     Create a GpuMemoryBuffer backed image with width equal to <width>
43     and height equal to <height> and format equal to <internalformat>.
45     Returns a unique identifier for the image that could be used in
46     subsequent operations.
48     INVALID_VALUE is generated if <width> or <height> is nonpositive.
50     INVALID_ENUM is generated if <internalformat> is not one of
51     RGB or RGBA.
53     INVALID_ENUM is generated if <usage> is not one of
54     MAP_CHROMIUM or SCANOUT_CHROMIUM.
56 Errors
58     None.
60 New State
62     None.
64 Revision History
66     9/29/2014   Documented the extension.