summaryrefslogtreecommitdiffstats
path: root/ppapi/lib
diff options
context:
space:
mode:
authorneb@chromium.org <neb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-28 22:15:13 +0000
committerneb@chromium.org <neb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-28 22:15:13 +0000
commit748ce719f7594754695dfbd17b35618a58a5ffd1 (patch)
treecb8c9a30d8d8d64c4cfcbd3429535c3e6ec116c1 /ppapi/lib
parentafbdbf11a0beb96ac10459e5748db0f5abc41ef5 (diff)
downloadchromium_src-748ce719f7594754695dfbd17b35618a58a5ffd1.zip
chromium_src-748ce719f7594754695dfbd17b35618a58a5ffd1.tar.gz
chromium_src-748ce719f7594754695dfbd17b35618a58a5ffd1.tar.bz2
Fix up some types in the API.
size_t -> int32_t, char* -> void* for buffers, void* -> const void* where needed. We already use int32_t when we serialize size_t (and unlike pointers, size_ts do get serialized a lot). char* for representing unstructured blocks of memory is weird, see "man 2 read" and friends. I'm removing it because it complicates our type system in IDL for no reason. const void* should be obvious. BUG=76271 TEST=none Review URL: http://codereview.chromium.org/6711047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79623 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/lib')
-rw-r--r--ppapi/lib/gl/egl/egldriver.c2
-rw-r--r--ppapi/lib/gl/gles2/gl2ext_ppapi.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/ppapi/lib/gl/egl/egldriver.c b/ppapi/lib/gl/egl/egldriver.c
index 90f573e..240063e 100644
--- a/ppapi/lib/gl/egl/egldriver.c
+++ b/ppapi/lib/gl/egl/egldriver.c
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <stddef.h>
+
#include "third_party/mesa/MesaLib/src/egl/main/egldriver.h"
#include "third_party/mesa/MesaLib/src/egl/main/eglconfig.h"
diff --git a/ppapi/lib/gl/gles2/gl2ext_ppapi.c b/ppapi/lib/gl/gles2/gl2ext_ppapi.c
index 1759413..02e3005 100644
--- a/ppapi/lib/gl/gles2/gl2ext_ppapi.c
+++ b/ppapi/lib/gl/gles2/gl2ext_ppapi.c
@@ -4,6 +4,8 @@
#include "ppapi/lib/gl/gles2/gl2ext_ppapi.h"
+#include <stddef.h>
+
#ifndef GL_FALSE
#define GL_FALSE 0
#endif // GL_FALSE