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

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

Issue 2461003003: Reduce GPU mailbox size to 16 bytes (Closed)
Patch Set: fix tests Created 4 years, 1 month 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 | « cc/ipc/struct_traits_unittest.cc ('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>
11 #include <GLES2/gl2ext.h> 11 #include <GLES2/gl2ext.h>
12 12
13 #ifdef __cplusplus 13 #ifdef __cplusplus
14 extern "C" { 14 extern "C" {
15 #endif 15 #endif
16 16
17 /* GL_CHROMIUM_texture_mailbox */ 17 /* GL_CHROMIUM_texture_mailbox */
18 #ifndef GL_CHROMIUM_texture_mailbox 18 #ifndef GL_CHROMIUM_texture_mailbox
19 #define GL_CHROMIUM_texture_mailbox 1 19 #define GL_CHROMIUM_texture_mailbox 1
20 20
21 #ifndef GL_MAILBOX_SIZE_CHROMIUM 21 #ifndef GL_MAILBOX_SIZE_CHROMIUM
22 #define GL_MAILBOX_SIZE_CHROMIUM 64 22 #define GL_MAILBOX_SIZE_CHROMIUM 16
23 #endif 23 #endif
24 #ifdef GL_GLEXT_PROTOTYPES 24 #ifdef GL_GLEXT_PROTOTYPES
25 GL_APICALL void GL_APIENTRY glGenMailboxCHROMIUM(GLbyte* mailbox); 25 GL_APICALL void GL_APIENTRY glGenMailboxCHROMIUM(GLbyte* mailbox);
26 GL_APICALL void GL_APIENTRY glProduceTextureCHROMIUM( 26 GL_APICALL void GL_APIENTRY glProduceTextureCHROMIUM(
27 GLenum target, const GLbyte* mailbox); 27 GLenum target, const GLbyte* mailbox);
28 GL_APICALL void GL_APIENTRY glProduceTextureDirectCHROMIUM( 28 GL_APICALL void GL_APIENTRY glProduceTextureDirectCHROMIUM(
29 GLuint texture, GLenum target, const GLbyte* mailbox); 29 GLuint texture, GLenum target, const GLbyte* mailbox);
30 GL_APICALL void GL_APIENTRY glConsumeTextureCHROMIUM( 30 GL_APICALL void GL_APIENTRY glConsumeTextureCHROMIUM(
31 GLenum target, const GLbyte* mailbox); 31 GLenum target, const GLbyte* mailbox);
32 GL_APICALL GLuint GL_APIENTRY glCreateAndConsumeTextureCHROMIUM( 32 GL_APICALL GLuint GL_APIENTRY glCreateAndConsumeTextureCHROMIUM(
(...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after
1201 GL_APICALL void GL_APIENTRY glCoverageModulationCHROMIUM(GLenum components); 1201 GL_APICALL void GL_APIENTRY glCoverageModulationCHROMIUM(GLenum components);
1202 #endif 1202 #endif
1203 #define GL_COVERAGE_MODULATION_CHROMIUM 0x9332 1203 #define GL_COVERAGE_MODULATION_CHROMIUM 0x9332
1204 #endif /* GL_CHROMIUM_framebuffer_mixed_samples */ 1204 #endif /* GL_CHROMIUM_framebuffer_mixed_samples */
1205 1205
1206 #ifdef __cplusplus 1206 #ifdef __cplusplus
1207 } 1207 }
1208 #endif 1208 #endif
1209 1209
1210 #endif // GPU_GLES2_GL2EXTCHROMIUM_H_ 1210 #endif // GPU_GLES2_GL2EXTCHROMIUM_H_
OLDNEW
« no previous file with comments | « cc/ipc/struct_traits_unittest.cc ('k') | gpu/command_buffer/build_gles2_cmd_buffer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698