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

Issue 8873018: Less X connections. (Closed)

Created:
9 years ago by jonathan.backer
Modified:
9 years ago
Reviewers:
apatrick_chromium
CC:
chromium-reviews, dhollowa+watch_chromium.org
Visibility:
Public.

Description

Less X connections. With Aura, we are using GLSurfaces on the UI thread. So we have 2 X connections, one for the MessagePumpX and another for the GLSurfaces. Using shawnsingh's scissoring patch, I've noticed that sometimes these race. This fixes the problem by using only one connection. BUG=104248 TEST=Enable shawnssingh's scissoring (comment out "m_capabilities.usingPartialSwap = false" in LayerRendererChromium.cpp). Launch Aura chrome repeatedly on hardware (e.g. Intel graphics) supporting GLX_MESA_copy_sub_buffer. There should be no undrawn regions on the screen.

Patch Set 1 #

Patch Set 2 : Two less statics. #

Total comments: 1

Patch Set 3 : Address reviewer comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -27 lines) Patch
M ui/gfx/gl/gl_surface_egl.cc View 1 2 4 chunks +16 lines, -10 lines 0 comments Download
M ui/gfx/gl/gl_surface_glx.cc View 1 12 chunks +15 lines, -17 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
jonathan.backer
One potential problem is that MessagePumpX closes the X connection in the destructor. This is ...
9 years ago (2011-12-08 16:02:13 UTC) #1
apatrick_chromium
LGTM with one nit. http://codereview.chromium.org/8873018/diff/4/ui/gfx/gl/gl_surface_egl.cc File ui/gfx/gl/gl_surface_egl.cc (right): http://codereview.chromium.org/8873018/diff/4/ui/gfx/gl/gl_surface_egl.cc#newcode174 ui/gfx/gl/gl_surface_egl.cc:174: static EGLNativeDisplayType g_native_display = NULL; ...
9 years ago (2011-12-08 20:16:22 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/backer@chromium.org/8873018/4001
9 years ago (2011-12-08 20:26:55 UTC) #3
jonathan.backer
9 years ago (2011-12-09 14:34:37 UTC) #4
Superceded by piman@'s patch http://codereview.chromium.org/8890042/

Closing.

Powered by Google App Engine
This is Rietveld 408576698