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

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

Issue 255713008: Change glimage to accept a type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: no ozone Created 6 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 | Annotate | Revision Log
OLDNEW
1 Name 1 Name
2 2
3 CHROMIUM_map_image 3 CHROMIUM_map_image
reveman 2014/04/30 11:31:28 "map" is awkward naming now that that is not neces
4 4
5 Name Strings 5 Name Strings
6 6
7 GL_CHROMIUM_map_image 7 GL_CHROMIUM_map_image
8 8
9 Version 9 Version
10 10
11 Last Modifed Date: May 9, 2013 11 Last Modifed Date: May 9, 2013
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 Overview 17 Overview
18 18
19 This extension allows for more efficient uploading of texture data through 19 This extension allows for more efficient uploading of texture data through
20 Chromium's OpenGL ES 2.0 implementation. 20 Chromium's OpenGL ES 2.0 implementation as well as enable hardware overlay
21 support by providing avility to create buffers capable of being scanned out
reveman 2014/04/30 11:31:28 the ability
22 directly by the display controller.
21 23
22 For security reasons Chromium accesses the GPU from a separate process. User 24 For security reasons Chromium accesses the GPU from a separate process. User
23 processes are not allowed to access the GPU directly. This multi-process 25 processes are not allowed to access the GPU directly. This multi-process
24 architechure has the advantage that GPU operations can be secured and 26 architechure has the advantage that GPU operations can be secured and
25 pipelined but it has the disadvantage that all data that is going to be 27 pipelined but it has the disadvantage that all data that is going to be
26 passed to GPU must first be made available to the separate GPU process. 28 passed to GPU must first be made available to the separate GPU process.
27 29
28 This extension helps the application directly allocate and access texture 30 This extension helps the application directly allocate and access texture
29 memory. 31 memory.
30 32
31 Issues 33 Issues
32 34
33 None 35 None
34 36
35 New Tokens 37 New Tokens
36 38
37 None 39 None
reveman 2014/04/30 11:31:28 Can you add the enums to this section? including I
38 40
39 New Procedures and Functions 41 New Procedures and Functions
40 42
41 GLuint CreateImageCHROMIUM (GLsizei width, GLsizei height, 43 GLuint CreateImageCHROMIUM (GLsizei width, GLsizei height,
reveman 2014/04/30 11:31:28 while here, can you remove space between "CHROMIUM
42 GLenum internalformat) 44 GLenum internalformat, GLenum usage)
43 45
44 Allocate an image with width equal to <width> and height equal 46 Allocate an image with width equal to <width> and height equal
45 to <height> stored in format <internalformat>. 47 to <height> stored in format <internalformat>.
46 48
47 Returns a unique identifier for the allocated image that could be used 49 Returns a unique identifier for the allocated image that could be used
48 in subsequent operations. 50 in subsequent operations.
49 51
50 INVALID_VALUE is generated if <width> or <height> is nonpositive. 52 INVALID_VALUE is generated if <width> or <height> is nonpositive.
51 53
54 INVALID_ENUM is generated if <usage> is not one of READ_WRITE and
reveman 2014/04/30 11:31:28 CPU_READ_WRITE?
alexst (slow to review) 2014/04/30 23:41:46 GL_IMAGE_CPU_READ_WRITE_CHROMIUM to match IMAGE_RO
reveman 2014/05/01 12:06:37 Yes, maybe even IMAGE_MAP_READ_WRITE or simply IMA
55 SCANOUT.
56
52 void DestroyImageCHROMIUM (GLuint image_id) 57 void DestroyImageCHROMIUM (GLuint image_id)
reveman 2014/04/30 11:31:28 please remove the space here too
53 58
54 Frees the image previously allocated by a call to CreateImageCHROMIUM. 59 Frees the image previously allocated by a call to CreateImageCHROMIUM.
55 60
56 INVALID_OPERATION is generated if <image_id> is not a valid image id. 61 INVALID_OPERATION is generated if <image_id> is not a valid image id.
57 62
58 void* MapImageCHROMIUM (GLuint image_id, GLenum access) 63 void* MapImageCHROMIUM (GLuint image_id)
reveman 2014/04/30 11:31:28 remove space
59 64
60 Returns a pointer to in the user memory for the application to modify 65 Returns a pointer to in the user memory for the application to modify
61 the image. <access> parameter defines if the user will read or write the 66 the image. Returns null is the image was not created with READ_WRITE usage.
reveman 2014/04/30 11:31:28 s/is/if/ hm, I prefer if we just make it illegal
alexst (slow to review) 2014/04/30 23:41:46 Done.
62 pixels.
63 67
64 INVALID_OPERATION is generated if <image_id> is not a valid image id. 68 INVALID_OPERATION is generated if <image_id> is not a valid image id.
65 69
66 INVALID_OPERATION is generated if the image was already mapped by a previous 70 INVALID_OPERATION is generated if the image was already mapped by a previous
67 call to this method. 71 call to this method.
68 72
69 INVALID_ENUM is generated if <access> is not one of WRITE_ONLY, READ_ONLY
70 and READ_WRITE.
71
72 void UnmapImageCHROMIUM (GLuint image_id) 73 void UnmapImageCHROMIUM (GLuint image_id)
reveman 2014/04/30 11:31:28 and the space here, thanks :)
73 74
74 Removes the mapping created by a call to MapImageCHROMIUM. 75 Removes the mapping created by a call to MapImageCHROMIUM.
75 76
76 Note that after calling UnmapImageCHROMIUM the application should assume 77 Note that after calling UnmapImageCHROMIUM the application should assume
77 that the memory returned by MapImageCHROMIUM is off limits and is no longer 78 that the memory returned by MapImageCHROMIUM is off limits and is no longer
78 accessible by the application. Accessing it after calling 79 accessible by the application. Accessing it after calling
79 UnmapImageCHROMIUM will produce undefined results. 80 UnmapImageCHROMIUM will produce undefined results.
80 81
81 INVALID_OPERATION is generated if <image_id> is not a valid image id. 82 INVALID_OPERATION is generated if <image_id> is not a valid image id.
82 83
(...skipping 15 matching lines...) Expand all
98 99
99 None. 100 None.
100 101
101 New State 102 New State
102 103
103 None. 104 None.
104 105
105 Revision History 106 Revision History
106 107
107 5/9/2013 Documented the extension 108 5/9/2013 Documented the extension
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698