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

Side by Side Diff: client/deps/glbench/src/utils.h

Issue 2122020: Fixes for GLES systems. (Closed) Base URL: ssh://git@chromiumos-git//autotest.git
Patch Set: ...and removed bogus #-I from Makefile Created 10 years, 7 months 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
OLDNEW
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium OS 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 #ifndef BENCH_GL_UTILS_H_ 5 #ifndef BENCH_GL_UTILS_H_
6 #define BENCH_GL_UTILS_H_ 6 #define BENCH_GL_UTILS_H_
7 7
8 #ifdef USE_EGL 8 #if defined(USE_OPENGLES)
9 #include "GLES2/gl2.h" 9 #include "GLES2/gl2.h"
10 #else 10 #elif defined(USE_OPENGL)
11 #include "GL/gl.h" 11 #include "GL/gl.h"
12 #endif 12 #endif
13 13
14 14
15 void SetBasePathFromArgv0(const char* argv0, const char* relative); 15 void SetBasePathFromArgv0(const char* argv0, const char* relative);
16 void *MmapFile(const char *name, size_t *length); 16 void *MmapFile(const char *name, size_t *length);
17 17
18 namespace glbench { 18 namespace glbench {
19 19
20 GLuint SetupTexture(GLsizei size_log2); 20 GLuint SetupTexture(GLsizei size_log2);
21 GLuint SetupVBO(GLenum target, GLsizeiptr size, const GLvoid *data); 21 GLuint SetupVBO(GLenum target, GLsizeiptr size, const GLvoid *data);
22 void CreateLattice(GLfloat **vertices, GLsizeiptr *size, 22 void CreateLattice(GLfloat **vertices, GLsizeiptr *size,
23 GLfloat size_x, GLfloat size_y, int width, int height); 23 GLfloat size_x, GLfloat size_y, int width, int height);
24 int CreateMesh(GLuint **indices, GLsizeiptr *size, 24 int CreateMesh(GLuint **indices, GLsizeiptr *size,
25 int width, int height, int culled_ratio); 25 int width, int height, int culled_ratio);
26 GLuint InitShaderProgram(const char *vertex_src, const char *fragment_src); 26 GLuint InitShaderProgram(const char *vertex_src, const char *fragment_src);
27 27
28 #define I915_WORKAROUND 1
29
30 } // namespace glbench 28 } // namespace glbench
31 29
32 #endif // BENCH_GL_UTILS_H_ 30 #endif // BENCH_GL_UTILS_H_
OLDNEW
« no previous file with comments | « client/deps/glbench/src/textureupdatetest.cc ('k') | client/deps/glbench/src/varyingsandddxytest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698