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

Side by Side Diff: ppapi/c/dev/ppb_opengles_dev.h

Issue 5340003: Make a new test to enforce the sizes of all structs and enums in the C API.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/c/dev/ppb_font_dev.h ('k') | ppapi/c/dev/ppb_scrollbar_dev.h » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 is auto-generated. DO NOT EDIT! 5 // This file is auto-generated. DO NOT EDIT!
6 6
7 // This interface is used to access common and lite profile OpenGL ES 2.0 7 // This interface is used to access common and lite profile OpenGL ES 2.0
8 // functions. 8 // functions.
9 #ifndef PPAPI_C_DEV_PPB_OPENGLES_DEV_H_ 9 #ifndef PPAPI_C_DEV_PPB_OPENGLES_DEV_H_
10 #define PPAPI_C_DEV_PPB_OPENGLES_DEV_H_ 10 #define PPAPI_C_DEV_PPB_OPENGLES_DEV_H_
11 11
12 #include "ppapi/GLES2/khrplatform.h" 12 #include "ppapi/GLES2/khrplatform.h"
13 13
14 #define PPB_OPENGLES_DEV_INTERFACE "PPB_OpenGLES(Dev);2.0" 14 #define PPB_OPENGLES_DEV_INTERFACE "PPB_OpenGLES(Dev);2.0"
15 15
16 typedef unsigned int GLenum; 16 typedef unsigned int GLenum;
17 PP_COMPILE_ASSERT_SIZE_IN_BYTES(GLenum, 4);
17 typedef void GLvoid; 18 typedef void GLvoid;
18 typedef khronos_intptr_t GLintptr; 19 typedef khronos_intptr_t GLintptr;
19 typedef int GLsizei; 20 typedef int GLsizei;
21 PP_COMPILE_ASSERT_SIZE_IN_BYTES(GLsizei, 4);
20 typedef khronos_ssize_t GLsizeiptr; 22 typedef khronos_ssize_t GLsizeiptr;
21 typedef int GLint; 23 typedef int GLint;
24 PP_COMPILE_ASSERT_SIZE_IN_BYTES(GLint, 4);
22 typedef unsigned char GLboolean; 25 typedef unsigned char GLboolean;
26 PP_COMPILE_ASSERT_SIZE_IN_BYTES(GLboolean, 1);
23 typedef unsigned int GLuint; 27 typedef unsigned int GLuint;
28 PP_COMPILE_ASSERT_SIZE_IN_BYTES(GLuint, 4);
24 typedef unsigned int GLbitfield; 29 typedef unsigned int GLbitfield;
30 PP_COMPILE_ASSERT_SIZE_IN_BYTES(GLbitfield, 4);
25 typedef short GLshort; 31 typedef short GLshort;
32 PP_COMPILE_ASSERT_SIZE_IN_BYTES(GLshort, 2);
26 typedef float GLfloat; 33 typedef float GLfloat;
34 PP_COMPILE_ASSERT_SIZE_IN_BYTES(GLfloat, 4);
27 typedef float GLclampf; 35 typedef float GLclampf;
36 PP_COMPILE_ASSERT_SIZE_IN_BYTES(GLclampf, 4);
28 typedef signed char GLbyte; 37 typedef signed char GLbyte;
38 PP_COMPILE_ASSERT_SIZE_IN_BYTES(GLbyte, 1);
29 typedef unsigned char GLubyte; 39 typedef unsigned char GLubyte;
40 PP_COMPILE_ASSERT_SIZE_IN_BYTES(GLubyte, 1);
30 typedef int GLfixed; 41 typedef int GLfixed;
42 PP_COMPILE_ASSERT_SIZE_IN_BYTES(GLfixed, 4);
31 typedef unsigned short GLushort; 43 typedef unsigned short GLushort;
44 PP_COMPILE_ASSERT_SIZE_IN_BYTES(GLushort, 2);
32 typedef int GLclampx; 45 typedef int GLclampx;
46 PP_COMPILE_ASSERT_SIZE_IN_BYTES(GLclampx, 4);
33 47
34 struct PPB_OpenGLES_Dev { 48 struct PPB_OpenGLES_Dev {
35 void (*ActiveTexture)(GLenum texture); 49 void (*ActiveTexture)(GLenum texture);
36 void (*AttachShader)(GLuint program, GLuint shader); 50 void (*AttachShader)(GLuint program, GLuint shader);
37 void (*BindAttribLocation)(GLuint program, GLuint index, const char* name); 51 void (*BindAttribLocation)(GLuint program, GLuint index, const char* name);
38 void (*BindBuffer)(GLenum target, GLuint buffer); 52 void (*BindBuffer)(GLenum target, GLuint buffer);
39 void (*BindFramebuffer)(GLenum target, GLuint framebuffer); 53 void (*BindFramebuffer)(GLenum target, GLuint framebuffer);
40 void (*BindRenderbuffer)(GLenum target, GLuint renderbuffer); 54 void (*BindRenderbuffer)(GLenum target, GLuint renderbuffer);
41 void (*BindTexture)(GLenum target, GLuint texture); 55 void (*BindTexture)(GLenum target, GLuint texture);
42 void (*BlendColor)( 56 void (*BlendColor)(
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 GLuint indx, GLint size, GLenum type, GLboolean normalized, 241 GLuint indx, GLint size, GLenum type, GLboolean normalized,
228 GLsizei stride, const void* ptr); 242 GLsizei stride, const void* ptr);
229 void (*Viewport)(GLint x, GLint y, GLsizei width, GLsizei height); 243 void (*Viewport)(GLint x, GLint y, GLsizei width, GLsizei height);
230 void (*SwapBuffers)(); 244 void (*SwapBuffers)();
231 void (*CopyTextureToParentTexture)( 245 void (*CopyTextureToParentTexture)(
232 GLuint client_child_id, GLuint client_parent_id); 246 GLuint client_child_id, GLuint client_parent_id);
233 }; 247 };
234 248
235 #endif // PPAPI_C_DEV_PPB_OPENGLES_DEV_H_ 249 #endif // PPAPI_C_DEV_PPB_OPENGLES_DEV_H_
236 250
OLDNEW
« no previous file with comments | « ppapi/c/dev/ppb_font_dev.h ('k') | ppapi/c/dev/ppb_scrollbar_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698