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

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

Issue 492009: First batch of GCC fixes for GPU code. (Closed)
Patch Set: Minor fixes Created 11 years 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 | « gpu/command_buffer/service/gles2_cmd_decoder.h ('k') | 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 /* 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
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
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_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.h ('k') | gpu/command_buffer/service/x_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698