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

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

Issue 9582024: Revert 124702 - GPU: Buld most of the gpu as a single DLL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/hash_tables.h" 9 #include "base/hash_tables.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "gpu/command_buffer/service/gl_utils.h" 12 #include "gpu/command_buffer/service/gl_utils.h"
13 #include "gpu/gpu_export.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 GPU_EXPORT RenderbufferManager { 19 class RenderbufferManager {
21 public: 20 public:
22 // Info about Renderbuffers currently in the system. 21 // Info about Renderbuffers currently in the system.
23 class GPU_EXPORT RenderbufferInfo 22 class RenderbufferInfo : public base::RefCounted<RenderbufferInfo> {
24 : public base::RefCounted<RenderbufferInfo> {
25 public: 23 public:
26 typedef scoped_refptr<RenderbufferInfo> Ref; 24 typedef scoped_refptr<RenderbufferInfo> Ref;
27 25
28 RenderbufferInfo(RenderbufferManager* manager, GLuint service_id) 26 RenderbufferInfo(RenderbufferManager* manager, GLuint service_id)
29 : manager_(manager), 27 : manager_(manager),
30 service_id_(service_id), 28 service_id_(service_id),
31 cleared_(true), 29 cleared_(true),
32 has_been_bound_(false), 30 has_been_bound_(false),
33 samples_(0), 31 samples_(0),
34 internal_format_(GL_RGBA4), 32 internal_format_(GL_RGBA4),
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 typedef base::hash_map<GLuint, RenderbufferInfo::Ref> RenderbufferInfoMap; 170 typedef base::hash_map<GLuint, RenderbufferInfo::Ref> RenderbufferInfoMap;
173 RenderbufferInfoMap renderbuffer_infos_; 171 RenderbufferInfoMap renderbuffer_infos_;
174 172
175 DISALLOW_COPY_AND_ASSIGN(RenderbufferManager); 173 DISALLOW_COPY_AND_ASSIGN(RenderbufferManager);
176 }; 174 };
177 175
178 } // namespace gles2 176 } // namespace gles2
179 } // namespace gpu 177 } // namespace gpu
180 178
181 #endif // GPU_COMMAND_BUFFER_SERVICE_RENDERBUFFER_MANAGER_H_ 179 #endif // GPU_COMMAND_BUFFER_SERVICE_RENDERBUFFER_MANAGER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/program_manager.h ('k') | gpu/command_buffer/service/shader_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698