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

Issue 7889040: Change X11 error handler override to allow easy X11 error checking. (Closed)

Created:
9 years, 3 months ago by dominich
Modified:
9 years, 2 months ago
CC:
chromium-reviews, derat+watch_chromium.org
Visibility:
Public.

Description

Change X11 error handler override to allow easy X11 error checking. BUG=None TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=102978

Patch Set 1 #

Total comments: 15

Patch Set 2 : Replacing scoped pointer semantics #

Patch Set 3 : Removing Xwindows.h #

Total comments: 8

Patch Set 4 : Clean up and remove spurious undefs #

Total comments: 17

Patch Set 5 : Limit scope of required undefs. Remove dynamic XErrorEvent creation. #

Patch Set 6 : Fix build issues #

Total comments: 11

Patch Set 7 : Change include order instead of undef #

Patch Set 8 : Adding DCHECK for MessageLoop correctness #

Total comments: 4

Patch Set 9 : Change function name and remove return value #

Patch Set 10 : rebase #

Patch Set 11 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -72 lines) Patch
M gpu/DEPS View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/common/gl_mock.h View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -1 line 0 comments Download
M gpu/command_buffer/service/buffer_manager_unittest.cc View 1 2 3 4 5 6 2 chunks +5 lines, -3 lines 0 comments Download
M gpu/command_buffer/service/framebuffer_manager_unittest.cc View 1 2 3 4 5 6 2 chunks +6 lines, -5 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 5 6 7 8 9 4 chunks +11 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/id_manager_unittest.cc View 1 2 3 4 5 6 2 chunks +5 lines, -3 lines 0 comments Download
M gpu/command_buffer/service/program_manager_unittest.cc View 1 2 3 4 5 6 2 chunks +5 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/renderbuffer_manager_unittest.cc View 1 2 3 4 5 6 2 chunks +5 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/shader_manager_unittest.cc View 1 2 3 4 5 6 2 chunks +5 lines, -3 lines 0 comments Download
M gpu/command_buffer/service/texture_manager_unittest.cc View 1 2 3 4 5 6 2 chunks +5 lines, -3 lines 0 comments Download
M gpu/command_buffer/service/vertex_attrib_manager_unittest.cc View 1 2 3 4 5 6 2 chunks +5 lines, -3 lines 0 comments Download
M ui/base/x/x11_util.cc View 1 2 3 4 5 6 7 8 9 6 chunks +74 lines, -41 lines 0 comments Download
M ui/base/x/x11_util_internal.h View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M ui/gfx/gl/gl_bindings.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -6 lines 0 comments Download
M ui/gfx/gl/gl_context_glx.cc View 1 2 3 4 5 6 7 8 4 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
dominich
As per the thread on catching non-fatal X errors before attempting to make GL calls ...
9 years, 3 months ago (2011-09-14 16:52:14 UTC) #1
marcheu
http://codereview.chromium.org/7889040/diff/1/ui/gfx/gl/gl_context_glx.cc File ui/gfx/gl/gl_context_glx.cc (right): http://codereview.chromium.org/7889040/diff/1/ui/gfx/gl/gl_context_glx.cc#newcode118 ui/gfx/gl/gl_context_glx.cc:118: Why not do this earlier in the function? glX ...
9 years, 3 months ago (2011-09-14 17:02:43 UTC) #2
Ami GONE FROM CHROMIUM
http://codereview.chromium.org/7889040/diff/1/ui/base/x/x11_util.cc File ui/base/x/x11_util.cc (right): http://codereview.chromium.org/7889040/diff/1/ui/base/x/x11_util.cc#newcode59 ui/base/x/x11_util.cc:59: XErrorHandler error_handler_ = NULL; file-statics don't get trailing underscores ...
9 years, 3 months ago (2011-09-14 17:11:13 UTC) #3
dominich
http://codereview.chromium.org/7889040/diff/1/ui/gfx/gl/gl_context_glx.cc File ui/gfx/gl/gl_context_glx.cc (right): http://codereview.chromium.org/7889040/diff/1/ui/gfx/gl/gl_context_glx.cc#newcode132 ui/gfx/gl/gl_context_glx.cc:132: CHECK(!g_has_x_error_); On 2011/09/14 17:11:13, Ami Fischman wrote: > If ...
9 years, 3 months ago (2011-09-14 17:15:57 UTC) #4
Ami GONE FROM CHROMIUM
http://codereview.chromium.org/7889040/diff/1/ui/gfx/gl/gl_context_glx.cc File ui/gfx/gl/gl_context_glx.cc (right): http://codereview.chromium.org/7889040/diff/1/ui/gfx/gl/gl_context_glx.cc#newcode132 ui/gfx/gl/gl_context_glx.cc:132: CHECK(!g_has_x_error_); On 2011/09/14 17:15:57, dominich wrote: > On 2011/09/14 ...
9 years, 3 months ago (2011-09-14 17:20:50 UTC) #5
dominich
On 2011/09/14 17:20:50, Ami Fischman wrote: > http://codereview.chromium.org/7889040/diff/1/ui/gfx/gl/gl_context_glx.cc > File ui/gfx/gl/gl_context_glx.cc (right): > > http://codereview.chromium.org/7889040/diff/1/ui/gfx/gl/gl_context_glx.cc#newcode132 ...
9 years, 3 months ago (2011-09-14 17:27:03 UTC) #6
dominich
I have introduced a CHECK_X_ERROR macro but I can't find a good place to put ...
9 years, 3 months ago (2011-09-14 19:55:06 UTC) #7
Ami GONE FROM CHROMIUM
http://codereview.chromium.org/7889040/diff/5003/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): http://codereview.chromium.org/7889040/diff/5003/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode50 gpu/command_buffer/service/gles2_cmd_decoder.cc:50: #define CHECK_X_ERROR() do { \ Why not put this ...
9 years, 3 months ago (2011-09-14 23:23:11 UTC) #8
dominich
I think this is a much cleaner implementation. Let me know your thoughts.
9 years, 3 months ago (2011-09-20 22:58:22 UTC) #9
Ami GONE FROM CHROMIUM
I like this version a lot better! http://codereview.chromium.org/7889040/diff/7001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): http://codereview.chromium.org/7889040/diff/7001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode45 gpu/command_buffer/service/gles2_cmd_decoder.cc:45: #include "ui/base/x/x11_util.h" ...
9 years, 3 months ago (2011-09-20 23:45:51 UTC) #10
Ami GONE FROM CHROMIUM
BTW the CL description is now way out of date :)
9 years, 3 months ago (2011-09-20 23:46:17 UTC) #11
dominich
I had to put back the #undef for symbols that are shared between gtest and ...
9 years, 3 months ago (2011-09-21 19:47:30 UTC) #12
sadrul
Hi! Just a note that came up in a review in another CR: http://codereview.chromium.org/7981030/ http://codereview.chromium.org/7889040/diff/9004/ui/base/x/x11_util.cc ...
9 years, 3 months ago (2011-09-21 21:50:34 UTC) #13
dominich
http://codereview.chromium.org/7889040/diff/9004/ui/base/x/x11_util.cc File ui/base/x/x11_util.cc (right): http://codereview.chromium.org/7889040/diff/9004/ui/base/x/x11_util.cc#newcode770 ui/base/x/x11_util.cc:770: } On 2011/09/21 21:50:34, sadrul wrote: > Can this ...
9 years, 3 months ago (2011-09-21 22:05:16 UTC) #14
Ami GONE FROM CHROMIUM
LGTM modulo nits http://codereview.chromium.org/7889040/diff/7001/ui/base/x/x11_util.cc File ui/base/x/x11_util.cc (right): http://codereview.chromium.org/7889040/diff/7001/ui/base/x/x11_util.cc#newcode772 ui/base/x/x11_util.cc:772: XSync(display, False); On 2011/09/21 19:47:30, dominich ...
9 years, 3 months ago (2011-09-21 22:21:42 UTC) #15
dominich
On 2011/09/21 22:21:42, Ami Fischman wrote: > LGTM modulo nits > > http://codereview.chromium.org/7889040/diff/7001/ui/base/x/x11_util.cc > File ...
9 years, 3 months ago (2011-09-21 23:01:30 UTC) #16
sadrul
On 2011/09/21 23:01:30, dominich wrote: > On 2011/09/21 22:21:42, Ami Fischman wrote: > > LGTM ...
9 years, 3 months ago (2011-09-22 15:22:49 UTC) #17
dominich
On 2011/09/22 15:22:49, sadrul wrote: > On 2011/09/21 23:01:30, dominich wrote: > > On 2011/09/21 ...
9 years, 3 months ago (2011-09-22 15:52:48 UTC) #18
sadrul
[snip] > > > > > > I understand that. I'm not sure if there's ...
9 years, 3 months ago (2011-09-22 16:19:37 UTC) #19
dominich
http://codereview.chromium.org/7889040/diff/9004/gpu/command_buffer/common/gl_mock.h File gpu/command_buffer/common/gl_mock.h (right): http://codereview.chromium.org/7889040/diff/9004/gpu/command_buffer/common/gl_mock.h#newcode12 gpu/command_buffer/common/gl_mock.h:12: #if defined(USE_X11) On 2011/09/21 22:21:42, Ami Fischman wrote: > ...
9 years, 3 months ago (2011-09-22 17:00:15 UTC) #20
Ami GONE FROM CHROMIUM
http://codereview.chromium.org/7889040/diff/17001/ui/base/x/x11_util.cc File ui/base/x/x11_util.cc (right): http://codereview.chromium.org/7889040/diff/17001/ui/base/x/x11_util.cc#newcode773 ui/base/x/x11_util.cc:773: LOG(FATAL) << BuildX11ErrorString(last_error_event); once you FATAL the rest of ...
9 years, 3 months ago (2011-09-22 17:17:50 UTC) #21
dominich
On 2011/09/21 21:50:34, sadrul wrote: > Hi! Just a note that came up in a ...
9 years, 3 months ago (2011-09-22 17:46:18 UTC) #22
sadrul
On 2011/09/22 17:46:18, dominich wrote: > On 2011/09/21 21:50:34, sadrul wrote: > > Hi! Just ...
9 years, 3 months ago (2011-09-22 17:49:11 UTC) #23
sadrul
On 2011/09/22 17:49:11, sadrul wrote: > On 2011/09/22 17:46:18, dominich wrote: > > On 2011/09/21 ...
9 years, 3 months ago (2011-09-22 17:51:44 UTC) #24
dominich
On 2011/09/22 17:49:11, sadrul wrote: > On 2011/09/22 17:46:18, dominich wrote: > > On 2011/09/21 ...
9 years, 3 months ago (2011-09-22 17:53:04 UTC) #25
dominich
http://codereview.chromium.org/7889040/diff/17001/ui/base/x/x11_util.cc File ui/base/x/x11_util.cc (right): http://codereview.chromium.org/7889040/diff/17001/ui/base/x/x11_util.cc#newcode773 ui/base/x/x11_util.cc:773: LOG(FATAL) << BuildX11ErrorString(last_error_event); On 2011/09/22 17:17:50, Ami Fischman wrote: ...
9 years, 3 months ago (2011-09-22 18:24:11 UTC) #26
Ami GONE FROM CHROMIUM
LGTM
9 years, 3 months ago (2011-09-22 18:26:34 UTC) #27
marcheu
You have my LGTM for what it's worth (I'm not a Chrome committer).
9 years, 3 months ago (2011-09-23 19:49:34 UTC) #28
sadrul
I chimed in for the comment. No need for an LGTM from me ;)
9 years, 3 months ago (2011-09-23 19:51:22 UTC) #29
Ken Russell (switch to Gerrit)
LGTM
9 years, 2 months ago (2011-09-26 22:12:13 UTC) #30
commit-bot: I haz the power
CQ is trying tha patch. Follow status at https://chromium-status.appspot.com/cq/dominich@chromium.org/7889040/29001
9 years, 2 months ago (2011-09-27 16:44:37 UTC) #31
commit-bot: I haz the power
9 years, 2 months ago (2011-09-27 18:27:00 UTC) #32
Change committed as 102978

Powered by Google App Engine
This is Rietveld 408576698