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

Unified Diff: client/deps/glbench/src/xlib_window.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
« client/deps/glbench/src/teartest.cc ('K') | « client/deps/glbench/src/teartest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/deps/glbench/src/xlib_window.cc
diff --git a/client/deps/glbench/src/xlib_window.cc b/client/deps/glbench/src/xlib_window.cc
index 72a547468a6ca8bec3b2e0880f1e2ad9aeb24b55..ae17fe4e7f28c0351047e96441255b11e4fbed47 100644
--- a/client/deps/glbench/src/xlib_window.cc
+++ b/client/deps/glbench/src/xlib_window.cc
@@ -11,6 +11,7 @@ Window xlib_window = 0;
GLint g_width = 512;
GLint g_height = 512;
+bool g_override_redirect = true;
bool XlibInit() {
@@ -46,7 +47,7 @@ bool XlibInit() {
attr.colormap = XCreateColormap(xlib_display, root_window, visinfo->visual,
AllocNone);
attr.event_mask = StructureNotifyMask | ExposureMask | KeyPressMask;
- attr.override_redirect = True;
+ attr.override_redirect = g_override_redirect ? True : False;
xlib_window = ::XCreateWindow(xlib_display, root_window,
0, 0, g_width, g_height, 0, visinfo->depth,
InputOutput, visinfo->visual, mask, &attr);
« client/deps/glbench/src/teartest.cc ('K') | « client/deps/glbench/src/teartest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698