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

Unified Diff: client/deps/glbench/src/glx_stuff.cc

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/glx_stuff.cc
diff --git a/client/deps/glbench/src/glx_stuff.cc b/client/deps/glbench/src/glx_stuff.cc
index f30f6babd583f7e6cfbcbb77dc4977d47e48d097..57b481dd17814bd00ee044b3bad2d89d8fe23b07 100644
--- a/client/deps/glbench/src/glx_stuff.cc
+++ b/client/deps/glbench/src/glx_stuff.cc
@@ -69,3 +69,7 @@ void DestroyContext() {
void SwapBuffers() {
glXSwapBuffers(xlib_display, xlib_window);
}
+
+bool SwapInterval(int interval) {
+ return glXSwapIntervalSGI(interval) == 0;
+}

Powered by Google App Engine
This is Rietveld 408576698