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

Unified Diff: client/deps/glbench/src/main.h

Issue 894003: Teartest with -o flag to specify override redirect window and -r number to specify refresh rate. (Closed)
Patch Set: Created 10 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: client/deps/glbench/src/main.h
diff --git a/client/deps/glbench/src/main.h b/client/deps/glbench/src/main.h
index dc07a56e6a7b1f07502340cb3f5a12c5c1355a8c..10c1dea41af21b6eb253e43b41c377c67a6c0d8a 100644
--- a/client/deps/glbench/src/main.h
+++ b/client/deps/glbench/src/main.h
@@ -12,6 +12,7 @@
#include <GLES/gl.h>
#else
#include <GL/gl.h>
+#include <GL/glx.h>
#define LIST_PROC_FUNCTIONS(F) \
F(glAttachShader, PFNGLATTACHSHADERPROC) \
@@ -33,7 +34,8 @@
F(glUniform1f, PFNGLUNIFORM1FPROC) \
F(glUniform1i, PFNGLUNIFORM1IPROC) \
F(glUseProgram, PFNGLUSEPROGRAMPROC) \
- F(glVertexAttribPointer, PFNGLVERTEXATTRIBPOINTERPROC)
+ F(glVertexAttribPointer, PFNGLVERTEXATTRIBPOINTERPROC) \
+ F(glXSwapIntervalSGI, PFNGLXSWAPINTERVALSGIPROC)
#define F(fun, type) extern type fun;
LIST_PROC_FUNCTIONS(F)
@@ -50,11 +52,13 @@ inline uint64_t GetUTime() {
extern GLint g_width;
extern GLint g_height;
+extern bool g_override_redirect;
bool Init();
bool InitContext();
void DestroyContext();
void SwapBuffers();
+bool SwapInterval(int interval);
// BenchFunc functions are assumed to execute an operation iter times. See
// Bench for a detailed explanation.

Powered by Google App Engine
This is Rietveld 408576698