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 glFinish (void); |
| 8 | GL_APICALL void GL_APIENTRY glFlush (void); |
Jonathan Backer | db0d6774 | 2018-01-22 21:46:25 | [diff] [blame] | 9 | GL_APICALL GLenum GL_APIENTRY glGetError (void); |
Jonathan Backer | db0d6774 | 2018-01-22 21:46:25 | [diff] [blame] | 10 | GL_APICALL void GL_APIENTRY glShallowFlushCHROMIUM (void); |
| 11 | GL_APICALL void GL_APIENTRY glOrderingBarrierCHROMIUM (void); |
Jonathan Backer | db0d6774 | 2018-01-22 21:46:25 | [diff] [blame] | 12 | GL_APICALL void GL_APIENTRY glGenQueriesEXT (GLsizeiNotNegative n, GLuint* queries); |
| 13 | GL_APICALL void GL_APIENTRY glDeleteQueriesEXT (GLsizeiNotNegative n, const GLuint* queries); |
Andres Calderon Jaramillo | 21e9815 | 2019-08-22 01:38:04 | [diff] [blame] | 14 | GL_APICALL void GL_APIENTRY glQueryCounterEXT (GLidQuery id, GLenumQueryTarget target); |
Jonathan Backer | db0d6774 | 2018-01-22 21:46:25 | [diff] [blame] | 15 | GL_APICALL void GL_APIENTRY glBeginQueryEXT (GLenumQueryTarget target, GLidQuery id); |
| 16 | GL_APICALL void GL_APIENTRY glEndQueryEXT (GLenumQueryTarget target); |
| 17 | GL_APICALL void GL_APIENTRY glGetQueryObjectuivEXT (GLidQuery id, GLenumQueryObjectParameter pname, GLuint* params); |
Andres Calderon Jaramillo | 21e9815 | 2019-08-22 01:38:04 | [diff] [blame] | 18 | GL_APICALL void GL_APIENTRY glGetQueryObjectui64vEXT (GLidQuery id, GLenumQueryObjectParameter pname, GLuint64* params); |
Jonathan Backer | db0d6774 | 2018-01-22 21:46:25 | [diff] [blame] | 19 | |
| 20 | // Non-GL commands. |
Jonathan Backer | db0d6774 | 2018-01-22 21:46:25 | [diff] [blame] | 21 | GL_APICALL void GL_APIENTRY glLoseContextCHROMIUM (GLenumResetStatus current, GLenumResetStatus other); |
Jonathan Backer | db0d6774 | 2018-01-22 21:46:25 | [diff] [blame] | 22 | |
| 23 | // Extension KHR_robustness |
| 24 | GL_APICALL GLenum GL_APIENTRY glGetGraphicsResetStatusKHR (void); |
| 25 | |
Jonathan Backer | db0d6774 | 2018-01-22 21:46:25 | [diff] [blame] | 26 | // Extension CHROMIUM_raster_transport |
Adrienne Walker | 9e508a68 | 2019-03-06 20:21:25 | [diff] [blame] | 27 | GL_APICALL void GL_APIENTRY glBeginRasterCHROMIUM (GLuint sk_color, GLuint msaa_sample_count, GLboolean can_use_lcd_text, const GLbyte* mailbox); |
Antoine Labour | 423fe59 | 2019-01-10 22:13:09 | [diff] [blame] | 28 | GL_APICALL void GL_APIENTRY glRasterCHROMIUM (GLuint raster_shm_id, GLuint raster_shm_offset, GLuint raster_shm_size, GLuint font_shm_id, GLuint font_shm_offset, GLuint font_shm_size); |
Jonathan Backer | db0d6774 | 2018-01-22 21:46:25 | [diff] [blame] | 29 | GL_APICALL void GL_APIENTRY glEndRasterCHROMIUM (void); |
| 30 | 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); |
| 31 | GL_APICALL void GL_APIENTRY glDeleteTransferCacheEntryINTERNAL (GLuint entry_type, GLuint entry_id); |
| 32 | GL_APICALL void GL_APIENTRY glUnlockTransferCacheEntryINTERNAL (GLuint entry_type, GLuint entry_id); |
Khushal | 33205a7 | 2018-11-08 10:12:29 | [diff] [blame] | 33 | GL_APICALL void GL_APIENTRY glDeletePaintCacheTextBlobsINTERNAL (GLsizeiNotNegative n, const GLuint* ids); |
| 34 | GL_APICALL void GL_APIENTRY glDeletePaintCachePathsINTERNAL (GLsizeiNotNegative n, const GLuint* ids); |
| 35 | GL_APICALL void GL_APIENTRY glClearPaintCacheINTERNAL (void); |
Jonathan Backer | 9267bf1ec | 2018-03-06 19:56:50 | [diff] [blame] | 36 | |
| 37 | // TOOD(backer): Remove GL encoding. These are not GL functions. |
Antoine Labour | 9ddf6ac | 2019-01-17 01:59:39 | [diff] [blame] | 38 | // |mailboxes| argument is the concatenation of the source mailbox and the destination mailbox (32 bytes total) |
Nathan Zabriskie | f1095d7b | 2019-12-21 00:33:57 | [diff] [blame] | 39 | GL_APICALL void GL_APIENTRY glCopySubTextureINTERNAL (GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height, GLboolean unpack_flip_y, GLboolean unpack_premultiply_alpha, const GLbyte* mailboxes); |
Jonathan Backer | e26739c | 2018-05-15 13:27:07 | [diff] [blame] | 40 | GL_APICALL void GL_APIENTRY glTraceBeginCHROMIUM (const char* category_name, const char* trace_name); |
| 41 | GL_APICALL void GL_APIENTRY glTraceEndCHROMIUM (void); |
Khushal | 49836ab | 2018-07-25 02:08:45 | [diff] [blame] | 42 | GL_APICALL void GL_APIENTRY glSetActiveURLCHROMIUM (const char* url); |