| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 // This file declares the XWindowWrapper class. | 5 // This file declares the XWindowWrapper class. |
| 6 | 6 |
| 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_X_UTILS_H_ | 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_X_UTILS_H_ |
| 8 #define GPU_COMMAND_BUFFER_SERVICE_X_UTILS_H_ | 8 #define GPU_COMMAND_BUFFER_SERVICE_X_UTILS_H_ |
| 9 | 9 |
| 10 #include <GL/glx.h> | 10 #include <GL/glxew.h> |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "gpu/command_buffer/common/logging.h" | 12 #include "gpu/command_buffer/common/logging.h" |
| 13 | 13 |
| 14 namespace gpu { | 14 namespace gpu { |
| 15 | 15 |
| 16 // This class is a wrapper around an X Window and associated GL context. It is | 16 // This class is a wrapper around an X Window and associated GL context. It is |
| 17 // useful to isolate intrusive X headers, since it can be forward declared | 17 // useful to isolate intrusive X headers, since it can be forward declared |
| 18 // (Window and GLXContext can't). | 18 // (Window and GLXContext can't). |
| 19 class XWindowWrapper { | 19 class XWindowWrapper { |
| 20 public: | 20 public: |
| (...skipping 18 matching lines...) Expand all Loading... |
| 39 private: | 39 private: |
| 40 Display *display_; | 40 Display *display_; |
| 41 Window window_; | 41 Window window_; |
| 42 GLXContext context_; | 42 GLXContext context_; |
| 43 DISALLOW_COPY_AND_ASSIGN(XWindowWrapper); | 43 DISALLOW_COPY_AND_ASSIGN(XWindowWrapper); |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 } // namespace gpu | 46 } // namespace gpu |
| 47 | 47 |
| 48 #endif // GPU_COMMAND_BUFFER_SERVICE_X_UTILS_H_ | 48 #endif // GPU_COMMAND_BUFFER_SERVICE_X_UTILS_H_ |
| OLD | NEW |