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

Unified Diff: trunk/src/content/common/gpu/media/rendering_helper.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/content/browser/power_save_blocker_x11.cc ('k') | trunk/src/content/content_tests.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/content/common/gpu/media/rendering_helper.cc
===================================================================
--- trunk/src/content/common/gpu/media/rendering_helper.cc (revision 263732)
+++ trunk/src/content/common/gpu/media/rendering_helper.cc (working copy)
@@ -14,10 +14,6 @@
#include "ui/gl/gl_implementation.h"
#include "ui/gl/gl_surface.h"
-#if defined(USE_X11)
-#include "ui/gfx/x/x11_types.h"
-#endif
-
#ifdef GL_VARIANT_GLX
typedef GLXWindow NativeWindowType;
struct XFreeDeleter {
@@ -116,7 +112,7 @@
CHECK_GT(params.num_windows, 0);
#if GL_VARIANT_GLX
- x_display_ = gfx::GetXDisplay();
+ x_display_ = base::MessagePumpForUI::GetDefaultXDisplay();
CHECK(x_display_);
CHECK(glXQueryVersion(x_display_, NULL, NULL));
const int fbconfig_attr[] = {
@@ -148,7 +144,7 @@
#if defined(OS_WIN)
native_display = EGL_DEFAULT_DISPLAY;
#else
- x_display_ = gfx::GetXDisplay();
+ x_display_ = base::MessagePumpForUI::GetDefaultXDisplay();
CHECK(x_display_);
native_display = x_display_;
#endif
« no previous file with comments | « trunk/src/content/browser/power_save_blocker_x11.cc ('k') | trunk/src/content/content_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698