OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2009, Google Inc. | 2 * Copyright 2009, Google Inc. |
3 * All rights reserved. | 3 * All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 19 matching lines...) Expand all Loading... |
30 */ | 30 */ |
31 | 31 |
32 | 32 |
33 // This file declares the XWindowWrapper class. | 33 // This file declares the XWindowWrapper class. |
34 | 34 |
35 #ifndef GPU_COMMAND_BUFFER_SERVICE_X_UTILS_H_ | 35 #ifndef GPU_COMMAND_BUFFER_SERVICE_X_UTILS_H_ |
36 #define GPU_COMMAND_BUFFER_SERVICE_X_UTILS_H_ | 36 #define GPU_COMMAND_BUFFER_SERVICE_X_UTILS_H_ |
37 | 37 |
38 #include <GL/glx.h> | 38 #include <GL/glx.h> |
39 #include "base/basictypes.h" | 39 #include "base/basictypes.h" |
40 #include "gpu/command_buffer/common/cross/logging.h" | 40 #include "gpu/command_buffer/common/logging.h" |
41 | 41 |
42 namespace command_buffer { | 42 namespace command_buffer { |
43 | 43 |
44 // This class is a wrapper around an X Window and associated GL context. It is | 44 // This class is a wrapper around an X Window and associated GL context. It is |
45 // useful to isolate intrusive X headers, since it can be forward declared | 45 // useful to isolate intrusive X headers, since it can be forward declared |
46 // (Window and GLXContext can't). | 46 // (Window and GLXContext can't). |
47 class XWindowWrapper { | 47 class XWindowWrapper { |
48 public: | 48 public: |
49 XWindowWrapper(Display *display, Window window) | 49 XWindowWrapper(Display *display, Window window) |
50 : display_(display), | 50 : display_(display), |
(...skipping 16 matching lines...) Expand all Loading... |
67 private: | 67 private: |
68 Display *display_; | 68 Display *display_; |
69 Window window_; | 69 Window window_; |
70 GLXContext context_; | 70 GLXContext context_; |
71 DISALLOW_COPY_AND_ASSIGN(XWindowWrapper); | 71 DISALLOW_COPY_AND_ASSIGN(XWindowWrapper); |
72 }; | 72 }; |
73 | 73 |
74 } // namespace command_buffer | 74 } // namespace command_buffer |
75 | 75 |
76 #endif // GPU_COMMAND_BUFFER_SERVICE_X_UTILS_H_ | 76 #endif // GPU_COMMAND_BUFFER_SERVICE_X_UTILS_H_ |
OLD | NEW |