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

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

Issue 1524009: Use gflags in teartest. (Closed)
Patch Set: nit 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
« no previous file with comments | « 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 e4bad9202950439335ffd867f682b088f71a858e..4b1959f18311b672f15c47c5f1b6136db8abc206 100644
--- a/client/deps/glbench/src/xlib_window.cc
+++ b/client/deps/glbench/src/xlib_window.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <gflags/gflags.h>
+
#include "base/logging.h"
#include "main.h"
#include "xlib_window.h"
@@ -12,7 +14,7 @@ Window g_xlib_window = 0;
GLint g_width = WINDOW_WIDTH;
GLint g_height = WINDOW_HEIGHT;
-bool g_override_redirect = true;
+DEFINE_bool(override_redirect, true, "Use an override redirect window");
bool XlibInit() {
@@ -38,7 +40,7 @@ bool XlibInit() {
attr.colormap = XCreateColormap(g_xlib_display, root_window,
xlib_visinfo->visual, AllocNone);
attr.event_mask = StructureNotifyMask | ExposureMask | KeyPressMask;
- attr.override_redirect = g_override_redirect ? True : False;
+ attr.override_redirect = FLAGS_override_redirect ? True : False;
g_xlib_window = XCreateWindow(g_xlib_display, root_window,
0, 0, g_width, g_height, 0,
xlib_visinfo->depth, InputOutput,
« no previous file with comments | « client/deps/glbench/src/teartest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698