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

Side by Side Diff: gpu/command_buffer/service/x_utils.h

Issue 525109: linux: dynamically load libGL.so.1, and use glew to dynamically resolve symbols (Closed)
Patch Set: . Created 10 years, 11 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 | « no previous file | gpu/command_buffer/service/x_utils.cc » ('j') | 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) 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
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_
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/x_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698