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

Side by Side Diff: gpu/command_buffer/client/vertex_array_object_manager.h

Issue 1859703002: convert //gpu to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master 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_CLIENT_VERTEX_ARRAY_OBJECT_MANAGER_H_ 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_VERTEX_ARRAY_OBJECT_MANAGER_H_
6 #define GPU_COMMAND_BUFFER_CLIENT_VERTEX_ARRAY_OBJECT_MANAGER_H_ 6 #define GPU_COMMAND_BUFFER_CLIENT_VERTEX_ARRAY_OBJECT_MANAGER_H_
7 7
8 #include <GLES2/gl2.h> 8 #include <GLES2/gl2.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <memory>
12
11 #include "base/containers/hash_tables.h" 13 #include "base/containers/hash_tables.h"
12 #include "base/macros.h" 14 #include "base/macros.h"
13 #include "base/memory/scoped_ptr.h"
14 #include "gles2_impl_export.h" 15 #include "gles2_impl_export.h"
15 16
16 namespace gpu { 17 namespace gpu {
17 namespace gles2 { 18 namespace gles2 {
18 19
19 class GLES2Implementation; 20 class GLES2Implementation;
20 class GLES2CmdHelper; 21 class GLES2CmdHelper;
21 class VertexArrayObject; 22 class VertexArrayObject;
22 23
23 // VertexArrayObjectManager manages vertex array objects on the client side 24 // VertexArrayObjectManager manages vertex array objects on the client side
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 GLsizei real_stride, 107 GLsizei real_stride,
107 GLsizei num_elements); 108 GLsizei num_elements);
108 109
109 GLuint max_vertex_attribs_; 110 GLuint max_vertex_attribs_;
110 GLuint array_buffer_id_; 111 GLuint array_buffer_id_;
111 GLsizei array_buffer_size_; 112 GLsizei array_buffer_size_;
112 GLsizei array_buffer_offset_; 113 GLsizei array_buffer_offset_;
113 GLuint element_array_buffer_id_; 114 GLuint element_array_buffer_id_;
114 GLsizei element_array_buffer_size_; 115 GLsizei element_array_buffer_size_;
115 GLsizei collection_buffer_size_; 116 GLsizei collection_buffer_size_;
116 scoped_ptr<int8_t[]> collection_buffer_; 117 std::unique_ptr<int8_t[]> collection_buffer_;
117 118
118 VertexArrayObject* default_vertex_array_object_; 119 VertexArrayObject* default_vertex_array_object_;
119 VertexArrayObject* bound_vertex_array_object_; 120 VertexArrayObject* bound_vertex_array_object_;
120 VertexArrayObjectMap vertex_array_objects_; 121 VertexArrayObjectMap vertex_array_objects_;
121 122
122 const bool support_client_side_arrays_; 123 const bool support_client_side_arrays_;
123 124
124 DISALLOW_COPY_AND_ASSIGN(VertexArrayObjectManager); 125 DISALLOW_COPY_AND_ASSIGN(VertexArrayObjectManager);
125 }; 126 };
126 127
127 } // namespace gles2 128 } // namespace gles2
128 } // namespace gpu 129 } // namespace gpu
129 130
130 #endif // GPU_COMMAND_BUFFER_CLIENT_VERTEX_ARRAY_OBJECT_MANAGER_H_ 131 #endif // GPU_COMMAND_BUFFER_CLIENT_VERTEX_ARRAY_OBJECT_MANAGER_H_
131 132
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698