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

Unified Diff: trunk/src/ui/gfx/x/x11_types.cc

Issue 238093002: Revert 263726 "x11: Remove X11 message-pump." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 8 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 | « trunk/src/ui/gfx/x/x11_connection.cc ('k') | trunk/src/ui/gl/gl_image_glx.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/ui/gfx/x/x11_types.cc
===================================================================
--- trunk/src/ui/gfx/x/x11_types.cc (revision 263732)
+++ trunk/src/ui/gfx/x/x11_types.cc (working copy)
@@ -11,10 +11,7 @@
namespace gfx {
XDisplay* GetXDisplay() {
- static XDisplay* display = NULL;
- if (!display)
- display = XOpenDisplay(NULL);
- return display;
+ return base::MessagePumpForUI::GetDefaultXDisplay();
}
void PutARGBImage(XDisplay* display,
« no previous file with comments | « trunk/src/ui/gfx/x/x11_connection.cc ('k') | trunk/src/ui/gl/gl_image_glx.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698