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

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

Issue 2757001: Refactored YUV test. (Closed) Base URL: ssh://git@chromiumos-git//autotest.git
Patch Set: Created 10 years, 6 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
« no previous file with comments | « client/deps/glbench/src/all_tests.h ('k') | client/deps/glbench/src/main.cc » ('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 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_MAIN_H_ 5 #ifndef BENCH_GL_MAIN_H_
6 #define BENCH_GL_MAIN_H_ 6 #define BENCH_GL_MAIN_H_
7 7
8 #include <gflags/gflags.h> 8 #include <gflags/gflags.h>
9 #include <sys/time.h> 9 #include <sys/time.h>
10 10
(...skipping 19 matching lines...) Expand all
30 F(glGetAttribLocation, PFNGLGETATTRIBLOCATIONPROC) \ 30 F(glGetAttribLocation, PFNGLGETATTRIBLOCATIONPROC) \
31 F(glGetInfoLogARB, PFNGLGETPROGRAMINFOLOGPROC) \ 31 F(glGetInfoLogARB, PFNGLGETPROGRAMINFOLOGPROC) \
32 F(glGetProgramInfoLog, PFNGLGETPROGRAMINFOLOGPROC) \ 32 F(glGetProgramInfoLog, PFNGLGETPROGRAMINFOLOGPROC) \
33 F(glGetShaderInfoLog, PFNGLGETSHADERINFOLOGPROC) \ 33 F(glGetShaderInfoLog, PFNGLGETSHADERINFOLOGPROC) \
34 F(glGetUniformLocation, PFNGLGETUNIFORMLOCATIONPROC) \ 34 F(glGetUniformLocation, PFNGLGETUNIFORMLOCATIONPROC) \
35 F(glLinkProgram, PFNGLLINKPROGRAMPROC) \ 35 F(glLinkProgram, PFNGLLINKPROGRAMPROC) \
36 F(glShaderSource, PFNGLSHADERSOURCEPROC) \ 36 F(glShaderSource, PFNGLSHADERSOURCEPROC) \
37 F(glUniform1f, PFNGLUNIFORM1FPROC) \ 37 F(glUniform1f, PFNGLUNIFORM1FPROC) \
38 F(glUniform1i, PFNGLUNIFORM1IPROC) \ 38 F(glUniform1i, PFNGLUNIFORM1IPROC) \
39 F(glUniform4fv, PFNGLUNIFORM4FVPROC) \ 39 F(glUniform4fv, PFNGLUNIFORM4FVPROC) \
40 F(glUniformMatrix4fv, PFNGLUNIFORMMATRIX4FVPROC) \
40 F(glUseProgram, PFNGLUSEPROGRAMPROC) \ 41 F(glUseProgram, PFNGLUSEPROGRAMPROC) \
41 F(glVertexAttribPointer, PFNGLVERTEXATTRIBPOINTERPROC) \ 42 F(glVertexAttribPointer, PFNGLVERTEXATTRIBPOINTERPROC) \
42 F(glXSwapIntervalSGI, PFNGLXSWAPINTERVALSGIPROC) \ 43 F(glXSwapIntervalSGI, PFNGLXSWAPINTERVALSGIPROC) \
43 F(glXBindTexImageEXT, PFNGLXBINDTEXIMAGEEXTPROC) \ 44 F(glXBindTexImageEXT, PFNGLXBINDTEXIMAGEEXTPROC) \
44 F(glXReleaseTexImageEXT, PFNGLXRELEASETEXIMAGEEXTPROC) 45 F(glXReleaseTexImageEXT, PFNGLXRELEASETEXIMAGEEXTPROC)
45 46
46 #define F(fun, type) extern type fun; 47 #define F(fun, type) extern type fun;
47 LIST_PROC_FUNCTIONS(F) 48 LIST_PROC_FUNCTIONS(F)
48 #undef F 49 #undef F
49 50
(...skipping 17 matching lines...) Expand all
67 void DestroyContext(); 68 void DestroyContext();
68 void SwapBuffers(); 69 void SwapBuffers();
69 bool SwapInterval(int interval); 70 bool SwapInterval(int interval);
70 71
71 // This size is for a window that is very large but will fit on all 72 // This size is for a window that is very large but will fit on all
72 // the displays we care about. 73 // the displays we care about.
73 #define WINDOW_WIDTH 512 74 #define WINDOW_WIDTH 512
74 #define WINDOW_HEIGHT 512 75 #define WINDOW_HEIGHT 512
75 76
76 #endif // BENCH_GL_MAIN_H_ 77 #endif // BENCH_GL_MAIN_H_
OLDNEW
« no previous file with comments | « client/deps/glbench/src/all_tests.h ('k') | client/deps/glbench/src/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698