Jonathan Backer | db0d6774 | 2018-01-22 21:46:25 | [diff] [blame] | 1 | // Copyright 2018 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | // This file is read by build_raster_cmd_buffer.py to generate commands. |
| 6 | |
Jonathan Backer | db0d6774 | 2018-01-22 21:46:25 | [diff] [blame] | 7 | GL_APICALL void GL_APIENTRY glDeleteTextures (GLsizeiNotNegative n, const GLuint* textures); |
| 8 | GL_APICALL void GL_APIENTRY glFinish (void); |
| 9 | GL_APICALL void GL_APIENTRY glFlush (void); |
Jonathan Backer | db0d6774 | 2018-01-22 21:46:25 | [diff] [blame] | 10 | GL_APICALL GLenum GL_APIENTRY glGetError (void); |
| 11 | GL_APICALL void GL_APIENTRY glGetIntegerv (GLenumGLState pname, GLint* params); |
Jonathan Backer | db0d6774 | 2018-01-22 21:46:25 | [diff] [blame] | 12 | GL_APICALL void GL_APIENTRY glShallowFlushCHROMIUM (void); |
| 13 | GL_APICALL void GL_APIENTRY glOrderingBarrierCHROMIUM (void); |
Jonathan Backer | db0d6774 | 2018-01-22 21:46:25 | [diff] [blame] | 14 | GL_APICALL void GL_APIENTRY glGenQueriesEXT (GLsizeiNotNegative n, GLuint* queries); |
| 15 | GL_APICALL void GL_APIENTRY glDeleteQueriesEXT (GLsizeiNotNegative n, const GLuint* queries); |
| 16 | GL_APICALL void GL_APIENTRY glBeginQueryEXT (GLenumQueryTarget target, GLidQuery id); |
| 17 | GL_APICALL void GL_APIENTRY glEndQueryEXT (GLenumQueryTarget target); |
| 18 | GL_APICALL void GL_APIENTRY glGetQueryObjectuivEXT (GLidQuery id, GLenumQueryObjectParameter pname, GLuint* params); |
| 19 | |
| 20 | // Non-GL commands. |
| 21 | GL_APICALL GLuint GL_APIENTRY glCreateImageCHROMIUM (ClientBuffer buffer, GLsizei width, GLsizei height, GLenum internalformat); |
| 22 | GL_APICALL void GL_APIENTRY glDestroyImageCHROMIUM (GLuint image_id); |
Jonathan Backer | db0d6774 | 2018-01-22 21:46:25 | [diff] [blame] | 23 | GL_APICALL void GL_APIENTRY glCompressedCopyTextureCHROMIUM (GLuint source_id, GLuint dest_id); |
Jonathan Backer | db0d6774 | 2018-01-22 21:46:25 | [diff] [blame] | 24 | GL_APICALL void GL_APIENTRY glLoseContextCHROMIUM (GLenumResetStatus current, GLenumResetStatus other); |
Jonathan Backer | a1be172 | 2018-02-21 23:28:16 | [diff] [blame] | 25 | GL_APICALL GLuint64 GL_APIENTRY glInsertFenceSyncCHROMIUM (void); |
Jonathan Backer | db0d6774 | 2018-01-22 21:46:25 | [diff] [blame] | 26 | GL_APICALL void GL_APIENTRY glGenSyncTokenCHROMIUM (GLbyte* sync_token); |
| 27 | GL_APICALL void GL_APIENTRY glGenUnverifiedSyncTokenCHROMIUM (GLbyte* sync_token); |
| 28 | GL_APICALL void GL_APIENTRY glVerifySyncTokensCHROMIUM (GLbyte** sync_tokens, GLsizei count); |
| 29 | GL_APICALL void GL_APIENTRY glWaitSyncTokenCHROMIUM (const GLbyte* sync_token); |
Eric Karl | 0d482c52 | 2018-02-20 21:19:00 | [diff] [blame] | 30 | GL_APICALL void GL_APIENTRY glUnpremultiplyAndDitherCopyCHROMIUM (GLuint source_id, GLuint dest_id, GLint x, GLint y, GLsizei width, GLsizei height); |
Jonathan Backer | db0d6774 | 2018-01-22 21:46:25 | [diff] [blame] | 31 | |
| 32 | // Extension KHR_robustness |
| 33 | GL_APICALL GLenum GL_APIENTRY glGetGraphicsResetStatusKHR (void); |
| 34 | |
Jonathan Backer | db0d6774 | 2018-01-22 21:46:25 | [diff] [blame] | 35 | // Extension CHROMIUM_raster_transport |
Jonathan Backer | 7e749252 | 2018-07-20 00:23:55 | [diff] [blame] | 36 | GL_APICALL void GL_APIENTRY glBeginRasterCHROMIUM (GLuint sk_color, GLuint msaa_sample_count, GLboolean can_use_lcd_text, GLint color_type, GLuint color_space_transfer_cache_id, const GLbyte* mailbox); |
Khushal | a8d5064 | 2018-05-03 01:29:06 | [diff] [blame] | 37 | GL_APICALL void GL_APIENTRY glRasterCHROMIUM (GLuint raster_shm_id, GLuint raster_shm_offset, GLsizeiptr raster_shm_size, GLuint font_shm_id, GLuint font_shm_offset, GLsizeiptr font_shm_size); |
Jonathan Backer | db0d6774 | 2018-01-22 21:46:25 | [diff] [blame] | 38 | GL_APICALL void GL_APIENTRY glEndRasterCHROMIUM (void); |
| 39 | GL_APICALL void GL_APIENTRY glCreateTransferCacheEntryINTERNAL (GLuint entry_type, GLuint entry_id, GLuint handle_shm_id, GLuint handle_shm_offset, GLuint data_shm_id, GLuint data_shm_offset, GLuint data_size); |
| 40 | GL_APICALL void GL_APIENTRY glDeleteTransferCacheEntryINTERNAL (GLuint entry_type, GLuint entry_id); |
| 41 | GL_APICALL void GL_APIENTRY glUnlockTransferCacheEntryINTERNAL (GLuint entry_type, GLuint entry_id); |
Jonathan Backer | 9267bf1ec | 2018-03-06 19:56:50 | [diff] [blame] | 42 | |
| 43 | // TOOD(backer): Remove GL encoding. These are not GL functions. |
| 44 | GL_APICALL GLuint GL_APIENTRY glCreateTexture (bool use_buffer, EnumClassgfx::BufferUsage buffer_usage, EnumClassviz::ResourceFormat format); |
| 45 | GL_APICALL void GL_APIENTRY glSetColorSpaceMetadata (GLuint texture_id, GLColorSpace color_space); |
Antoine Labour | 3a776dc1 | 2018-06-13 00:07:48 | [diff] [blame] | 46 | GL_APICALL void GL_APIENTRY glProduceTextureDirect (GLuint texture, GLbyte* mailbox); |
Jonathan Backer | 9267bf1ec | 2018-03-06 19:56:50 | [diff] [blame] | 47 | GL_APICALL GLuint GL_APIENTRY glCreateAndConsumeTexture (bool use_buffer, EnumClassgfx::BufferUsage buffer_usage, EnumClassviz::ResourceFormat format, const GLbyte* mailbox); |
Jonathan Backer | a07c4a9e | 2018-03-21 15:13:16 | [diff] [blame] | 48 | GL_APICALL GLuint GL_APIENTRY glCreateAndConsumeTextureINTERNAL (GLuint texture_id, bool use_buffer, EnumClassgfx::BufferUsage buffer_usage, EnumClassviz::ResourceFormat format, const GLbyte* mailbox); |
Jonathan Backer | 9267bf1ec | 2018-03-06 19:56:50 | [diff] [blame] | 49 | GL_APICALL void GL_APIENTRY glTexParameteri (GLuint texture_id, GLenumTextureParameter pname, GLint param); |
| 50 | GL_APICALL void GL_APIENTRY glBindTexImage2DCHROMIUM (GLuint texture_id, GLint image_id); |
| 51 | GL_APICALL void GL_APIENTRY glReleaseTexImage2DCHROMIUM (GLuint texture_id, GLint image_id); |
Jonathan Backer | 774e03c6 | 2018-06-05 17:04:38 | [diff] [blame] | 52 | GL_APICALL void GL_APIENTRY glTexStorage2D (GLuint texture_id, GLsizei width, GLsizei height); |
Jonathan Backer | 9267bf1ec | 2018-03-06 19:56:50 | [diff] [blame] | 53 | GL_APICALL void GL_APIENTRY glCopySubTexture (GLuint source_id, GLuint dest_id, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); |
Jonathan Backer | e26739c | 2018-05-15 13:27:07 | [diff] [blame] | 54 | GL_APICALL void GL_APIENTRY glTraceBeginCHROMIUM (const char* category_name, const char* trace_name); |
| 55 | GL_APICALL void GL_APIENTRY glTraceEndCHROMIUM (void); |
Khushal | 49836ab | 2018-07-25 02:08:45 | [diff] [blame^] | 56 | GL_APICALL void GL_APIENTRY glSetActiveURLCHROMIUM (const char* url); |
| 57 | GL_APICALL void GL_APIENTRY glResetActiveURLCHROMIUM (void); |