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

Side by Side Diff: gpu/GLES2/gl2extchromium.h

Issue 14456004: GPU client side changes for GpuMemoryBuffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@glapi
Patch Set: Add missing parameter in GLES2Implementation ctor in GLES2Implementation unittest Created 7 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 | « gpu/GLES2/gl2chromium_autogen.h ('k') | gpu/command_buffer/build_gles2_cmd_buffer.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file contains Chromium-specific GLES2 extensions declarations. 5 // This file contains Chromium-specific GLES2 extensions declarations.
6 6
7 #ifndef GPU_GLES2_GL2EXTCHROMIUM_H_ 7 #ifndef GPU_GLES2_GL2EXTCHROMIUM_H_
8 #define GPU_GLES2_GL2EXTCHROMIUM_H_ 8 #define GPU_GLES2_GL2EXTCHROMIUM_H_
9 9
10 #include <GLES2/gl2.h> 10 #include <GLES2/gl2.h>
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // TODO(reveman): Get official numbers for this constants. 87 // TODO(reveman): Get official numbers for this constants.
88 #define GL_PIXEL_UNPACK_TRANSFER_BUFFER_BINDING_CHROMIUM 0x78EF 88 #define GL_PIXEL_UNPACK_TRANSFER_BUFFER_BINDING_CHROMIUM 0x78EF
89 #define GL_PIXEL_PACK_TRANSFER_BUFFER_BINDING_CHROMIUM 0x78EE 89 #define GL_PIXEL_PACK_TRANSFER_BUFFER_BINDING_CHROMIUM 0x78EE
90 #endif 90 #endif
91 91
92 #ifndef GL_STREAM_READ 92 #ifndef GL_STREAM_READ
93 #define GL_STREAM_READ 0x88E1 93 #define GL_STREAM_READ 0x88E1
94 #endif 94 #endif
95 #endif /* GL_CHROMIUM_pixel_transfer_buffer_object */ 95 #endif /* GL_CHROMIUM_pixel_transfer_buffer_object */
96 96
97 /* GL_CHROMIUM_map_image */
98 #ifndef GL_CHROMIUM_map_image
99 #define GL_CHROMIUM_map_image 1
100
101 #ifndef GL_IMAGE_ROWBYTES_CHROMIUM
102 #define GL_IMAGE_ROWBYTES_CHROMIUM 0x78F0
103 #endif
104
105 #ifndef GL_READ_WRITE
106 #define GL_READ_WRITE 0x88BA
107 #endif
108
109 #ifdef GL_GLEXT_PROTOTYPES
110 GL_APICALL GLuint GL_APIENTRY glCreateImageCHROMIUM(
111 GLsizei width, GLsizei height, GLenum internalformat);
112 GL_APICALL void GL_APIENTRY glDestroyImageCHROMIUM(GLuint image_id);
113 GL_APICALL void GL_APIENTRY glGetImageParameterivCHROMIUM(
114 GLuint image_id, GLenum pname, GLint* params);
115 GL_APICALL void* GL_APIENTRY glMapImageCHROMIUM(GLuint image_id, GLenum access);
116 GL_APICALL void GL_APIENTRY glUnmapImageCHROMIUM(GLuint image_id);
117 #endif
118 typedef GLuint (GL_APIENTRYP PFNGLCREATEIMAGECHROMIUMPROC) (
119 GLsizei width, GLsizei height, GLenum internalformat);
120 typedef void (
121 GL_APIENTRYP PFNGLDESTROYIMAGECHROMIUMPROC) (GLuint image_id);
122 typedef void (
123 GL_APIENTRYP PFNGLGETIMAGEPARAMETERIVCHROMIUMPROC) (
124 GLuint image_id, GLenum pname, GLint* params);
125 typedef void* (GL_APIENTRYP PFNGLMAPIMAGECHROMIUMPROC) (
126 GLuint image_id, GLenum access);
127 typedef void (GL_APIENTRYP PFNGLUNMAPIMAGECHROMIUMPROC) (GLuint image_id);
128 #endif /* GL_CHROMIUM_map_image */
129
97 /* GL_CHROMIUM_map_sub */ 130 /* GL_CHROMIUM_map_sub */
98 #ifndef GL_CHROMIUM_map_sub 131 #ifndef GL_CHROMIUM_map_sub
99 #define GL_CHROMIUM_map_sub 1 132 #define GL_CHROMIUM_map_sub 1
100 133
101 #ifndef GL_READ_ONLY 134 #ifndef GL_READ_ONLY
102 #define GL_READ_ONLY 0x88B8 135 #define GL_READ_ONLY 0x88B8
103 #endif 136 #endif
104 137
105 #ifndef GL_WRITE_ONLY 138 #ifndef GL_WRITE_ONLY
106 #define GL_WRITE_ONLY 0x88B9 139 #define GL_WRITE_ONLY 0x88B9
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 #endif 610 #endif
578 typedef GLuint (GL_APIENTRYP PFNGLINSERTSYNCPOINTCHROMIUMPROC) (); 611 typedef GLuint (GL_APIENTRYP PFNGLINSERTSYNCPOINTCHROMIUMPROC) ();
579 typedef void (GL_APIENTRYP PFNGLWAITSYNCPOINTCHROMIUMPROC) (GLuint sync_point); 612 typedef void (GL_APIENTRYP PFNGLWAITSYNCPOINTCHROMIUMPROC) (GLuint sync_point);
580 #endif /* GL_CHROMIUM_sync_point */ 613 #endif /* GL_CHROMIUM_sync_point */
581 614
582 #ifdef __cplusplus 615 #ifdef __cplusplus
583 } 616 }
584 #endif 617 #endif
585 618
586 #endif // GPU_GLES2_GL2EXTCHROMIUM_H_ 619 #endif // GPU_GLES2_GL2EXTCHROMIUM_H_
OLDNEW
« no previous file with comments | « gpu/GLES2/gl2chromium_autogen.h ('k') | gpu/command_buffer/build_gles2_cmd_buffer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698