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

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

Issue 1859703002: convert //gpu to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: undo part of clang-format Created 4 years, 8 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
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_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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 // Whether this framebuffer has ever been bound. 217 // Whether this framebuffer has ever been bound.
218 bool has_been_bound_; 218 bool has_been_bound_;
219 219
220 // state count when this framebuffer was last checked for completeness. 220 // state count when this framebuffer was last checked for completeness.
221 unsigned framebuffer_complete_state_count_id_; 221 unsigned framebuffer_complete_state_count_id_;
222 222
223 // A map of attachments. 223 // A map of attachments.
224 typedef base::hash_map<GLenum, scoped_refptr<Attachment> > AttachmentMap; 224 typedef base::hash_map<GLenum, scoped_refptr<Attachment> > AttachmentMap;
225 AttachmentMap attachments_; 225 AttachmentMap attachments_;
226 226
227 scoped_ptr<GLenum[]> draw_buffers_; 227 std::unique_ptr<GLenum[]> draw_buffers_;
228 228
229 GLenum read_buffer_; 229 GLenum read_buffer_;
230 230
231 DISALLOW_COPY_AND_ASSIGN(Framebuffer); 231 DISALLOW_COPY_AND_ASSIGN(Framebuffer);
232 }; 232 };
233 233
234 struct DecoderFramebufferState { 234 struct DecoderFramebufferState {
235 DecoderFramebufferState(); 235 DecoderFramebufferState();
236 ~DecoderFramebufferState(); 236 ~DecoderFramebufferState();
237 237
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 319
320 scoped_refptr<FramebufferCompletenessCache> framebuffer_combo_complete_cache_; 320 scoped_refptr<FramebufferCompletenessCache> framebuffer_combo_complete_cache_;
321 321
322 DISALLOW_COPY_AND_ASSIGN(FramebufferManager); 322 DISALLOW_COPY_AND_ASSIGN(FramebufferManager);
323 }; 323 };
324 324
325 } // namespace gles2 325 } // namespace gles2
326 } // namespace gpu 326 } // namespace gpu
327 327
328 #endif // GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ 328 #endif // GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698