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

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

Issue 557087: Fixed compile error for unit-tests on linux. We do not include any glew file ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | no next file » | 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/glxew.h>
11 #include "base/basictypes.h" 10 #include "base/basictypes.h"
12 #include "gpu/command_buffer/common/logging.h" 11 #include "gpu/command_buffer/common/logging.h"
12 #include "gpu/command_buffer/service/gl_utils.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:
21 XWindowWrapper(Display *display, Window window) 21 XWindowWrapper(Display *display, Window window)
22 : display_(display), 22 : display_(display),
(...skipping 16 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 | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698