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

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

Issue 1542513002: Switch to standard integer types in gpu/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 12 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
« no previous file with comments | « gpu/command_buffer/common/value_state.h ('k') | gpu/command_buffer/service/buffer_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BUFFER_MANAGER_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_BUFFER_MANAGER_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_BUFFER_MANAGER_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_BUFFER_MANAGER_H_
7 7
8 #include <stddef.h>
9 #include <stdint.h>
10
8 #include <map> 11 #include <map>
9 #include "base/basictypes.h"
10 #include "base/containers/hash_tables.h" 12 #include "base/containers/hash_tables.h"
11 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
14 #include "gpu/command_buffer/common/buffer.h" 17 #include "gpu/command_buffer/common/buffer.h"
15 #include "gpu/command_buffer/service/gl_utils.h" 18 #include "gpu/command_buffer/service/gl_utils.h"
16 #include "gpu/command_buffer/service/memory_tracking.h" 19 #include "gpu/command_buffer/service/memory_tracking.h"
17 #include "gpu/gpu_export.h" 20 #include "gpu/gpu_export.h"
18 21
19 namespace gpu { 22 namespace gpu {
20 namespace gles2 { 23 namespace gles2 {
21 24
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 void ClearCache(); 160 void ClearCache();
158 161
159 // Check if an offset, size range is valid for the current buffer. 162 // Check if an offset, size range is valid for the current buffer.
160 bool CheckRange(GLintptr offset, GLsizeiptr size) const; 163 bool CheckRange(GLintptr offset, GLsizeiptr size) const;
161 164
162 // The manager that owns this Buffer. 165 // The manager that owns this Buffer.
163 BufferManager* manager_; 166 BufferManager* manager_;
164 167
165 // A copy of the data in the buffer. This data is only kept if the target 168 // A copy of the data in the buffer. This data is only kept if the target
166 // is backed_ = true. 169 // is backed_ = true.
167 scoped_ptr<int8[]> shadow_; 170 scoped_ptr<int8_t[]> shadow_;
168 171
169 // Size of buffer. 172 // Size of buffer.
170 GLsizeiptr size_; 173 GLsizeiptr size_;
171 174
172 // True if deleted. 175 // True if deleted.
173 bool deleted_; 176 bool deleted_;
174 177
175 // Whether or not the data is shadowed. 178 // Whether or not the data is shadowed.
176 bool shadowed_; 179 bool shadowed_;
177 180
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 bool have_context_; 329 bool have_context_;
327 bool use_client_side_arrays_for_stream_buffers_; 330 bool use_client_side_arrays_for_stream_buffers_;
328 331
329 DISALLOW_COPY_AND_ASSIGN(BufferManager); 332 DISALLOW_COPY_AND_ASSIGN(BufferManager);
330 }; 333 };
331 334
332 } // namespace gles2 335 } // namespace gles2
333 } // namespace gpu 336 } // namespace gpu
334 337
335 #endif // GPU_COMMAND_BUFFER_SERVICE_BUFFER_MANAGER_H_ 338 #endif // GPU_COMMAND_BUFFER_SERVICE_BUFFER_MANAGER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/value_state.h ('k') | gpu/command_buffer/service/buffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698