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

Unified Diff: media/gpu/ipc/service/gpu_video_decode_accelerator.cc

Issue 1936093003: Fix gpu_video_decode_accelerator include order by renaming enum with X11 name collision (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename Status->ThreadStatus Created 4 years, 7 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 | « content/common/child_process_messages.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/ipc/service/gpu_video_decode_accelerator.cc
diff --git a/media/gpu/ipc/service/gpu_video_decode_accelerator.cc b/media/gpu/ipc/service/gpu_video_decode_accelerator.cc
index 6e6ba3155a91627f58e84cbba567dd7fac831dea..18a17de2725e456f53a3ba4c121cd2632c177619 100644
--- a/media/gpu/ipc/service/gpu_video_decode_accelerator.cc
+++ b/media/gpu/ipc/service/gpu_video_decode_accelerator.cc
@@ -2,15 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// TODO(markdittmer): This shouldn't be necessary.
-// Ensure that X11 headers don't poison environment before macro headers are
-// loaded.
-//
-// In particular, X11/Xlib.h defines "Status", which is the name of an enum
-// defined in "base/tracked_objects.h", which is eventually required by
-// "ipc/ipc_message_macros.h".
-#include "ipc/ipc_message_macros.h"
dcheng 2016/05/06 19:24:00 I'm not sure which header is doing it, but that he
piman 2016/05/06 19:46:47 Agreed - do we know what includes Xlib.h here?
Mark Dittmer 2016/05/09 15:12:41 The relevant preprocessor trace is as follows: #
-
#include "media/gpu/ipc/service/gpu_video_decode_accelerator.h"
#include <memory>
@@ -28,6 +19,7 @@
#include "gpu/command_buffer/service/gpu_preferences.h"
#include "gpu/ipc/service/gpu_channel.h"
#include "gpu/ipc/service/gpu_channel_manager.h"
+#include "ipc/ipc_message_macros.h"
#include "ipc/ipc_message_utils.h"
#include "ipc/message_filter.h"
#include "media/base/limits.h"
« no previous file with comments | « content/common/child_process_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698