OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #ifndef GPU_COMMAND_BUFFER_SERVICE_RENDERBUFFER_MANAGER_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_RENDERBUFFER_MANAGER_H_ |
6 #define GPU_COMMAND_BUFFER_SERVICE_RENDERBUFFER_MANAGER_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_RENDERBUFFER_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/logging.h" | |
11 #include "base/ref_counted.h" | 10 #include "base/ref_counted.h" |
12 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
13 #include "gpu/command_buffer/service/gl_utils.h" | 12 #include "gpu/command_buffer/service/gl_utils.h" |
14 | 13 |
15 namespace gpu { | 14 namespace gpu { |
16 namespace gles2 { | 15 namespace gles2 { |
17 | 16 |
18 // This class keeps track of the renderbuffers and whether or not they have | 17 // This class keeps track of the renderbuffers and whether or not they have |
19 // been cleared. | 18 // been cleared. |
20 class RenderbufferManager { | 19 class RenderbufferManager { |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 typedef std::map<GLuint, RenderbufferInfo::Ref> RenderbufferInfoMap; | 98 typedef std::map<GLuint, RenderbufferInfo::Ref> RenderbufferInfoMap; |
100 RenderbufferInfoMap renderbuffer_infos_; | 99 RenderbufferInfoMap renderbuffer_infos_; |
101 | 100 |
102 DISALLOW_COPY_AND_ASSIGN(RenderbufferManager); | 101 DISALLOW_COPY_AND_ASSIGN(RenderbufferManager); |
103 }; | 102 }; |
104 | 103 |
105 } // namespace gles2 | 104 } // namespace gles2 |
106 } // namespace gpu | 105 } // namespace gpu |
107 | 106 |
108 #endif // GPU_COMMAND_BUFFER_SERVICE_RENDERBUFFER_MANAGER_H_ | 107 #endif // GPU_COMMAND_BUFFER_SERVICE_RENDERBUFFER_MANAGER_H_ |
109 | |
110 | |
OLD | NEW |