| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_GPU_X_UTIL_H_ | 5 #ifndef CHROME_GPU_X_UTIL_H_ |
| 6 #define CHROME_GPU_X_UTIL_H_ | 6 #define CHROME_GPU_X_UTIL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 // Some X-Windows specific stuff. This can be included on any platform, and will | 9 // Some X-Windows specific stuff. This can be included on any platform, and will |
| 10 // be a NOP on non-Linux ones. | 10 // be a NOP on non-Linux ones. |
| 11 | 11 |
| 12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 #include "chrome/gpu/gpu_config.h" | 13 #include "content/gpu/gpu_config.h" |
| 14 | 14 |
| 15 #if defined(OS_LINUX) | 15 #if defined(OS_LINUX) |
| 16 | 16 |
| 17 // Forward declares ------------------------------------------------------------ | 17 // Forward declares ------------------------------------------------------------ |
| 18 // | 18 // |
| 19 // X Windows headers do a lot of evil stuff, like "#define Status int" which | 19 // X Windows headers do a lot of evil stuff, like "#define Status int" which |
| 20 // will cause many problems when combined with our other header files (like | 20 // will cause many problems when combined with our other header files (like |
| 21 // ones that define a class local enum called "Status." | 21 // ones that define a class local enum called "Status." |
| 22 // | 22 // |
| 23 // These definitions are not Kosher, but allow us to remove this dependency and | 23 // These definitions are not Kosher, but allow us to remove this dependency and |
| (...skipping 14 matching lines...) Expand all Loading... |
| 38 // scoped_ptr_mallox<XVisualInfo, ScopedPtrXFree> foo(...); | 38 // scoped_ptr_mallox<XVisualInfo, ScopedPtrXFree> foo(...); |
| 39 // where "XVisualInfo" is any X type that is freed with XFree. | 39 // where "XVisualInfo" is any X type that is freed with XFree. |
| 40 class ScopedPtrXFree { | 40 class ScopedPtrXFree { |
| 41 public: | 41 public: |
| 42 void operator()(void* x) const; | 42 void operator()(void* x) const; |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 #endif // OS_LINUX | 45 #endif // OS_LINUX |
| 46 | 46 |
| 47 #endif // CHROME_GPU_X_UTIL_H_ | 47 #endif // CHROME_GPU_X_UTIL_H_ |
| OLD | NEW |