OLD | NEW |
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_FRAMEBUFFER_MANAGER_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ |
6 #define GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
| 11 #include <memory> |
11 #include <vector> | 12 #include <vector> |
12 | 13 |
13 #include "base/containers/hash_tables.h" | 14 #include "base/containers/hash_tables.h" |
14 #include "base/macros.h" | 15 #include "base/macros.h" |
15 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
16 #include "base/memory/scoped_ptr.h" | |
17 #include "gpu/command_buffer/service/context_group.h" | 17 #include "gpu/command_buffer/service/context_group.h" |
18 #include "gpu/command_buffer/service/gl_utils.h" | 18 #include "gpu/command_buffer/service/gl_utils.h" |
19 #include "gpu/gpu_export.h" | 19 #include "gpu/gpu_export.h" |
20 | 20 |
21 namespace gpu { | 21 namespace gpu { |
22 namespace gles2 { | 22 namespace gles2 { |
23 | 23 |
24 class FeatureInfo; | 24 class FeatureInfo; |
25 class FramebufferCompletenessCache; | 25 class FramebufferCompletenessCache; |
26 class FramebufferManager; | 26 class FramebufferManager; |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 // Whether this framebuffer has ever been bound. | 218 // Whether this framebuffer has ever been bound. |
219 bool has_been_bound_; | 219 bool has_been_bound_; |
220 | 220 |
221 // state count when this framebuffer was last checked for completeness. | 221 // state count when this framebuffer was last checked for completeness. |
222 unsigned framebuffer_complete_state_count_id_; | 222 unsigned framebuffer_complete_state_count_id_; |
223 | 223 |
224 // A map of attachments. | 224 // A map of attachments. |
225 typedef base::hash_map<GLenum, scoped_refptr<Attachment> > AttachmentMap; | 225 typedef base::hash_map<GLenum, scoped_refptr<Attachment> > AttachmentMap; |
226 AttachmentMap attachments_; | 226 AttachmentMap attachments_; |
227 | 227 |
228 scoped_ptr<GLenum[]> draw_buffers_; | 228 std::unique_ptr<GLenum[]> draw_buffers_; |
229 | 229 |
230 GLenum read_buffer_; | 230 GLenum read_buffer_; |
231 | 231 |
232 DISALLOW_COPY_AND_ASSIGN(Framebuffer); | 232 DISALLOW_COPY_AND_ASSIGN(Framebuffer); |
233 }; | 233 }; |
234 | 234 |
235 struct DecoderFramebufferState { | 235 struct DecoderFramebufferState { |
236 DecoderFramebufferState(); | 236 DecoderFramebufferState(); |
237 ~DecoderFramebufferState(); | 237 ~DecoderFramebufferState(); |
238 | 238 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 | 320 |
321 scoped_refptr<FramebufferCompletenessCache> framebuffer_combo_complete_cache_; | 321 scoped_refptr<FramebufferCompletenessCache> framebuffer_combo_complete_cache_; |
322 | 322 |
323 DISALLOW_COPY_AND_ASSIGN(FramebufferManager); | 323 DISALLOW_COPY_AND_ASSIGN(FramebufferManager); |
324 }; | 324 }; |
325 | 325 |
326 } // namespace gles2 | 326 } // namespace gles2 |
327 } // namespace gpu | 327 } // namespace gpu |
328 | 328 |
329 #endif // GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ | 329 #endif // GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ |
OLD | NEW |