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

Issue 1936093003: Fix gpu_video_decode_accelerator include order by renaming enum with X11 name collision (Closed)

Created:
4 years, 7 months ago by Mark Dittmer
Modified:
4 years, 7 months ago
CC:
chromium-reviews, Fady Samuel, Peng, piman, rjkroege, sadrul, vmiura, Ian Vollick
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Currently, gpu_video_decode_accelerator.cc has a strange include order exception for the following reason: (1) X11/Xlib.h contains "#define Status ..." (2) base/tracked_objects.h contains "enum Status { ... }" (3) gpu_video_decode_accelerator.cc indirectly includes (10 before (2) After discussing possible fixes with danakj@, I've renamed the enum in (2). R=danakj@chromium.org BUG=608239 Committed: https://crrev.com/276736a4e1f1f2431a6433208ac8a3c75f2722a4 Cr-Commit-Position: refs/heads/master@{#392408}

Patch Set 1 #

Patch Set 2 : Fix include order that used to depend on X11 include ordering #

Total comments: 3

Patch Set 3 : Rename Status->ThreadStatus #

Total comments: 3

Patch Set 4 : Move misplaced #endif to preserve #undefs across platforms #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -10 lines) Patch
M media/gpu/ipc/service/gpu_video_decode_accelerator.cc View 1 2 chunks +1 line, -9 lines 0 comments Download
M ui/gl/gl_bindings.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 54 (17 generated)
Mark Dittmer
4 years, 7 months ago (2016-05-02 14:34:38 UTC) #1
Mark Dittmer
Fix include order that used to depend on X11 include ordering
4 years, 7 months ago (2016-05-02 14:37:54 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1936093003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1936093003/20001
4 years, 7 months ago (2016-05-02 14:38:20 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-02 17:48:21 UTC) #6
danakj
https://codereview.chromium.org/1936093003/diff/20001/base/tracked_objects.h File base/tracked_objects.h (right): https://codereview.chromium.org/1936093003/diff/20001/base/tracked_objects.h#newcode437 base/tracked_objects.h:437: #undef Status // Xlib.h #defines this, which conflicts with ...
4 years, 7 months ago (2016-05-02 20:12:54 UTC) #7
Mark Dittmer
https://codereview.chromium.org/1936093003/diff/20001/base/tracked_objects.h File base/tracked_objects.h (right): https://codereview.chromium.org/1936093003/diff/20001/base/tracked_objects.h#newcode437 base/tracked_objects.h:437: #undef Status // Xlib.h #defines this, which conflicts with ...
4 years, 7 months ago (2016-05-04 14:00:07 UTC) #8
danakj
https://codereview.chromium.org/1936093003/diff/20001/base/tracked_objects.h File base/tracked_objects.h (right): https://codereview.chromium.org/1936093003/diff/20001/base/tracked_objects.h#newcode437 base/tracked_objects.h:437: #undef Status // Xlib.h #defines this, which conflicts with ...
4 years, 7 months ago (2016-05-04 20:17:57 UTC) #9
chromium-reviews
To be honest, I'm not convinced that there's a compelling reason that we haven't done ...
4 years, 7 months ago (2016-05-04 20:36:48 UTC) #10
danakj
On Wed, May 4, 2016 at 1:36 PM, Mark Dittmer <markdittmer@google.com> wrote: > To be ...
4 years, 7 months ago (2016-05-04 21:19:52 UTC) #11
chromium-reviews
Seems like a reasonable strategy. I'll look into this tomorrow. Do we have similar global ...
4 years, 7 months ago (2016-05-04 21:22:34 UTC) #12
danakj
On Wed, May 4, 2016 at 2:22 PM, Mark Dittmer <markdittmer@google.com> wrote: > Seems like ...
4 years, 7 months ago (2016-05-04 21:30:32 UTC) #13
Mark Dittmer
I think I may have discovered why this abstraction hasn't been done. Several places that ...
4 years, 7 months ago (2016-05-05 14:49:14 UTC) #14
danakj
On Thu, May 5, 2016 at 7:49 AM, <markdittmer@chromium.org> wrote: > I think I may ...
4 years, 7 months ago (2016-05-05 19:00:00 UTC) #15
Mark Dittmer
Rename Status->ThreadStatus
4 years, 7 months ago (2016-05-06 18:23:16 UTC) #16
Mark Dittmer
dcheng@chromium.org: Please review messages
4 years, 7 months ago (2016-05-06 18:32:44 UTC) #19
Mark Dittmer
sky@ PTAL at chrome/browser/chrome_browser_main.cc
4 years, 7 months ago (2016-05-06 18:33:59 UTC) #21
Mark Dittmer
sky@chromium.org: Please review changes in chrome/browser/chrome_browser_main.cc piman@chromium.org: Please review changes in content
4 years, 7 months ago (2016-05-06 18:34:50 UTC) #23
Mark Dittmer
sandersd@chromium.org: Please review changes in media
4 years, 7 months ago (2016-05-06 18:36:05 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1936093003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1936093003/40001
4 years, 7 months ago (2016-05-06 18:36:38 UTC) #27
dcheng
https://codereview.chromium.org/1936093003/diff/40001/media/gpu/ipc/service/gpu_video_decode_accelerator.cc File media/gpu/ipc/service/gpu_video_decode_accelerator.cc (left): https://codereview.chromium.org/1936093003/diff/40001/media/gpu/ipc/service/gpu_video_decode_accelerator.cc#oldcode12 media/gpu/ipc/service/gpu_video_decode_accelerator.cc:12: #include "ipc/ipc_message_macros.h" I'm not sure which header is doing ...
4 years, 7 months ago (2016-05-06 19:24:01 UTC) #28
danakj
base LGTM
4 years, 7 months ago (2016-05-06 19:41:10 UTC) #29
piman
https://codereview.chromium.org/1936093003/diff/40001/media/gpu/ipc/service/gpu_video_decode_accelerator.cc File media/gpu/ipc/service/gpu_video_decode_accelerator.cc (left): https://codereview.chromium.org/1936093003/diff/40001/media/gpu/ipc/service/gpu_video_decode_accelerator.cc#oldcode12 media/gpu/ipc/service/gpu_video_decode_accelerator.cc:12: #include "ipc/ipc_message_macros.h" On 2016/05/06 19:24:00, dcheng wrote: > I'm ...
4 years, 7 months ago (2016-05-06 19:46:47 UTC) #30
sky
LGTM
4 years, 7 months ago (2016-05-06 21:49:01 UTC) #31
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-06 22:02:40 UTC) #33
sandersd (OOO until July 31)
media/ lgtm
4 years, 7 months ago (2016-05-06 22:28:23 UTC) #34
Mark Dittmer
Identified the offending include chain. Each step appears to be genuinely necessary. https://codereview.chromium.org/1936093003/diff/40001/media/gpu/ipc/service/gpu_video_decode_accelerator.cc File media/gpu/ipc/service/gpu_video_decode_accelerator.cc ...
4 years, 7 months ago (2016-05-09 15:12:43 UTC) #35
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1936093003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1936093003/40001
4 years, 7 months ago (2016-05-09 15:13:10 UTC) #37
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-09 16:34:58 UTC) #39
piman
On Mon, May 9, 2016 at 8:12 AM, <markdittmer@chromium.org> wrote: > Identified the offending include ...
4 years, 7 months ago (2016-05-09 16:39:33 UTC) #40
Mark Dittmer
Move misplaced #endif to preserve #undefs across platforms
4 years, 7 months ago (2016-05-09 18:13:12 UTC) #41
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1936093003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1936093003/60001
4 years, 7 months ago (2016-05-09 18:14:12 UTC) #43
Mark Dittmer
On 2016/05/09 16:39:33, piman wrote: > We can cut headers in smaller pieces if needed, ...
4 years, 7 months ago (2016-05-09 18:16:53 UTC) #44
Mark Dittmer
Latest patch fixes issue by recognizing that all platforms that included egl headers should also ...
4 years, 7 months ago (2016-05-09 18:18:09 UTC) #45
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-09 19:31:32 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1936093003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1936093003/60001
4 years, 7 months ago (2016-05-09 20:09:13 UTC) #50
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-09 20:13:35 UTC) #52
commit-bot: I haz the power
4 years, 7 months ago (2016-05-09 20:14:33 UTC) #54
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/276736a4e1f1f2431a6433208ac8a3c75f2722a4
Cr-Commit-Position: refs/heads/master@{#392408}

Powered by Google App Engine
This is Rietveld 408576698