OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 | |
8 | 7 |
9 // 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 |
10 // be a NOP on non-Linux ones. | 9 // be a NOP on non-Linux ones. |
11 | 10 |
12 #include "build/build_config.h" | 11 #include "build/build_config.h" |
13 #include "content/common/gpu/gpu_config.h" | 12 #include "content/common/gpu/gpu_config.h" |
14 | 13 |
15 #if defined(USE_X11) | 14 #if defined(USE_X11) |
16 | 15 |
17 // Forward declares ------------------------------------------------------------ | 16 // Forward declares ------------------------------------------------------------ |
(...skipping 20 matching lines...) Expand all Loading... |
38 // scoped_ptr_mallox<XVisualInfo, ScopedPtrXFree> foo(...); | 37 // scoped_ptr_mallox<XVisualInfo, ScopedPtrXFree> foo(...); |
39 // where "XVisualInfo" is any X type that is freed with XFree. | 38 // where "XVisualInfo" is any X type that is freed with XFree. |
40 class ScopedPtrXFree { | 39 class ScopedPtrXFree { |
41 public: | 40 public: |
42 void operator()(void* x) const; | 41 void operator()(void* x) const; |
43 }; | 42 }; |
44 | 43 |
45 #endif // USE_X11 | 44 #endif // USE_X11 |
46 | 45 |
47 #endif // CHROME_GPU_X_UTIL_H_ | 46 #endif // CHROME_GPU_X_UTIL_H_ |
OLD | NEW |