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 | |
| 35 | // Extension CHROMIUM_discardable_textures |
| 36 | GL_APICALL void GL_APIENTRY glInitializeDiscardableTextureCHROMIUM (GLuint texture_id); |
| 37 | GL_APICALL void GL_APIENTRY glUnlockDiscardableTextureCHROMIUM (GLuint texture_id); |
| 38 | GL_APICALL bool GL_APIENTRY glLockDiscardableTextureCHROMIUM (GLuint texture_id); |
| 39 | |
| 40 | // Extension CHROMIUM_raster_transport |
Brian Salomon | 9fec307 | 2018-02-05 23:05:26 | [diff] [blame] | 41 | GL_APICALL void GL_APIENTRY glBeginRasterCHROMIUM (GLuint texture_id, GLuint sk_color, GLuint msaa_sample_count, GLboolean can_use_lcd_text, GLboolean use_distance_field_text, GLint color_type); |
Jonathan Backer | db0d6774 | 2018-01-22 21:46:25 | [diff] [blame] | 42 | GL_APICALL void GL_APIENTRY glRasterCHROMIUM (GLsizeiptr size, const void* list); |
Jonathan Backer | db0d6774 | 2018-01-22 21:46:25 | [diff] [blame] | 43 | GL_APICALL void GL_APIENTRY glEndRasterCHROMIUM (void); |
| 44 | 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); |
| 45 | GL_APICALL void GL_APIENTRY glDeleteTransferCacheEntryINTERNAL (GLuint entry_type, GLuint entry_id); |
| 46 | GL_APICALL void GL_APIENTRY glUnlockTransferCacheEntryINTERNAL (GLuint entry_type, GLuint entry_id); |
Jonathan Backer | 9267bf1ec | 2018-03-06 19:56:50 | [diff] [blame^] | 47 | |
| 48 | // TOOD(backer): Remove GL encoding. These are not GL functions. |
| 49 | GL_APICALL GLuint GL_APIENTRY glCreateTexture (bool use_buffer, EnumClassgfx::BufferUsage buffer_usage, EnumClassviz::ResourceFormat format); |
| 50 | GL_APICALL void GL_APIENTRY glSetColorSpaceMetadata (GLuint texture_id, GLColorSpace color_space); |
| 51 | GL_APICALL void GL_APIENTRY glGenMailbox (GLbyte* mailbox); |
| 52 | GL_APICALL void GL_APIENTRY glProduceTextureDirect (GLuint texture, const GLbyte* mailbox); |
| 53 | GL_APICALL GLuint GL_APIENTRY glCreateAndConsumeTexture (bool use_buffer, EnumClassgfx::BufferUsage buffer_usage, EnumClassviz::ResourceFormat format, const GLbyte* mailbox); |
| 54 | GL_APICALL void GL_APIENTRY glTexParameteri (GLuint texture_id, GLenumTextureParameter pname, GLint param); |
| 55 | GL_APICALL void GL_APIENTRY glBindTexImage2DCHROMIUM (GLuint texture_id, GLint image_id); |
| 56 | GL_APICALL void GL_APIENTRY glReleaseTexImage2DCHROMIUM (GLuint texture_id, GLint image_id); |
| 57 | GL_APICALL void GL_APIENTRY glTexStorage2D (GLuint texture_id, GLsizei levels, GLsizei width, GLsizei height); |
| 58 | GL_APICALL void GL_APIENTRY glCopySubTexture (GLuint source_id, GLuint dest_id, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); |