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

Side by Side Diff: gpu/ipc/service/x_util.h

Issue 1845563005: Refactor content/common/gpu into gpu/ipc/service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Drop ref to deleted content_tests_gypi_values.content_unittests_ozone_sources Created 4 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 unified diff | Download patch
« no previous file with comments | « gpu/ipc/service/stream_texture_android.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_COMMON_GPU_X_UTIL_H_ 5 #ifndef GPU_IPC_SERVICE_X_UTIL_H_
6 #define CONTENT_COMMON_GPU_X_UTIL_H_ 6 #define GPU_IPC_SERVICE_X_UTIL_H_
7 7
8 // Some X-Windows specific stuff. This can be included on any platform, and will 8 // Some X-Windows specific stuff. This can be included on any platform, and will
9 // be a NOP on non-Linux ones. 9 // be a NOP on non-Linux ones.
10 10
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "content/common/gpu/gpu_config.h" 12 #include "gpu/ipc/service/gpu_config.h"
13 13
14 #if defined(USE_X11) 14 #if defined(USE_X11)
15 15
16 namespace content { 16 namespace gpu {
17 17
18 // Forward declares ------------------------------------------------------------ 18 // Forward declares ------------------------------------------------------------
19 // 19 //
20 // X Windows headers do a lot of evil stuff, like "#define Status int" which 20 // X Windows headers do a lot of evil stuff, like "#define Status int" which
21 // will cause many problems when combined with our other header files (like 21 // will cause many problems when combined with our other header files (like
22 // ones that define a class local enum called "Status." 22 // ones that define a class local enum called "Status."
23 // 23 //
24 // These definitions are not Kosher, but allow us to remove this dependency and 24 // These definitions are not Kosher, but allow us to remove this dependency and
25 // actually compile X at all. 25 // actually compile X at all.
26 26
27 typedef unsigned long XID; 27 typedef unsigned long XID;
28 28
29 extern "C" { 29 extern "C" {
30 30
31 typedef struct _XDisplay Display; 31 typedef struct _XDisplay Display;
32 typedef struct __GLXcontextRec *GLXContext; 32 typedef struct __GLXcontextRec *GLXContext;
33 33
34 } // extern "C" 34 } // extern "C"
35 35
36 } // namespace content 36 } // namespace gpu
37 37
38 #endif // USE_X11 38 #endif // USE_X11
39 39
40 #endif // CONTENT_COMMON_GPU_X_UTIL_H_ 40 #endif // GPU_IPC_SERVICE_X_UTIL_H_
OLDNEW
« no previous file with comments | « gpu/ipc/service/stream_texture_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698