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

Side by Side Diff: gpu/GLES2/extensions/CHROMIUM/CHROMIUM_image.txt

Issue 1128933006: Update GL_CHROMIUM_image with support for compressed formats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Validate format against supported extensions. Created 5 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | gpu/command_buffer/client/gles2_implementation.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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: May 13, 2015
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. 17 EXT_texture_format_BGRA8888 affects the definition of this extension.
18 ARB_texture_rg affects the definition of this extension. 18 ARB_texture_rg affects the definition of this extension.
19 19
20 Overview 20 Overview
21 21
(...skipping 16 matching lines...) Expand all
38 GLenum internalformat) 38 GLenum internalformat)
39 39
40 Create an image from <buffer> with width equal to <width> and 40 Create an image from <buffer> with width equal to <width> and
41 height equal to <height> and format equal to <internalformat>. 41 height equal to <height> and format equal to <internalformat>.
42 42
43 Returns a unique identifier for the image that could be used in 43 Returns a unique identifier for the image that could be used in
44 subsequent operations. 44 subsequent operations.
45 45
46 INVALID_VALUE is generated if <width> or <height> is nonpositive. 46 INVALID_VALUE is generated if <width> or <height> is nonpositive.
47 47
48 INVALID_ENUM is generated if <internalformat> is not one of 48 INVALID_VALUE is generated if <internalformat> is not one of
49 R8, RGB, RGBA or BGRA_EXT. 49 R8, RGB, RGBA, BGRA_EXT, ATC_RGB_AMD, ATC_RGBA_INTERPOLATED_ALPHA_AMD,
50 COMPRESSED_RGB_S3TC_DXT1_EXT, COMPRESSED_RGBA_S3TC_DXT5_EXT or
51 ETC1_RGB8_OES.
50 52
51 void DestroyImageCHROMIUM(GLuint image_id) 53 void DestroyImageCHROMIUM(GLuint image_id)
52 54
53 Frees the image previously created by a call to CreateImageCHROMIUM. 55 Frees the image previously created by a call to CreateImageCHROMIUM.
54 56
55 INVALID_OPERATION is generated if <image_id> is not a valid image id. 57 INVALID_OPERATION is generated if <image_id> is not a valid image id.
56 58
57 Dependencies on EXT_texture_format_BGRA8888 59 Dependencies on EXT_texture_format_BGRA8888
58 60
59 If EXT_texture_format_BGRA8888 is not supported: 61 If EXT_texture_format_BGRA8888 is not supported:
60 * delete any reference to the BGRA_EXT format. 62 * delete any reference to the BGRA_EXT format.
61 63
62 Dependencies on ARB_texture_rg 64 Dependencies on ARB_texture_rg
63 65
64 If ARB_texture_rg is not supported: 66 If ARB_texture_rg is not supported:
65 * delete any reference to the R8 format. 67 * delete any reference to the R8 format.
66 68
69 Dependencies on AMD_compressed_ATC_texture
70
71 If AMD_compressed_ATC_texture is not supported:
72 * delete any reference to the ATC_RGB_AMD and
73 ATC_RGBA_INTERPOLATED_ALPHA_AMD formats.
74
75 Dependencies on EXT_texture_compression_s3tc
76
77 If EXT_texture_compression_s3tc is not supported:
78 * delete any reference to the COMPRESSED_RGB_S3TC_DXT1_EXT and
79 COMPRESSED_RGBA_S3TC_DXT5_EXT formats.
80
81 Dependencies on OES_compressed_ETC1_RGB8_texture
82
83 If OES_compressed_ETC1_RGB8_texture is not supported:
84 * delete any reference to the ETC1_RGB8_OES format.
85
67 Errors 86 Errors
68 87
69 None. 88 None.
70 89
71 New State 90 New State
72 91
73 None. 92 None.
74 93
75 Revision History 94 Revision History
76 95
77 5/9/2013 Documented the extension 96 5/9/2013 Documented the extension
78 4/30/2014 Moved usage flag to creation function. 97 4/30/2014 Moved usage flag to creation function.
79 10/7/2014 Remove map/unmap API. 98 10/7/2014 Remove map/unmap API.
80 4/6/2015 Add BGRA_EXT format. 99 4/6/2015 Add BGRA_EXT format.
81 2/7/2015 Add R8 format. 100 2/7/2015 Add R8 format.
101 5/13/2015 Add compressed formats.
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/client/gles2_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698