| 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_CLIENT_TRANSFER_BUFFER_H_ | 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_TRANSFER_BUFFER_H_ |
| 6 #define GPU_COMMAND_BUFFER_CLIENT_TRANSFER_BUFFER_H_ | 6 #define GPU_COMMAND_BUFFER_CLIENT_TRANSFER_BUFFER_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" |
| 8 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 9 #include "gpu/command_buffer/client/ring_buffer.h" | 10 #include "gpu/command_buffer/client/ring_buffer.h" |
| 10 #include "gpu/command_buffer/common/buffer.h" | 11 #include "gpu/command_buffer/common/buffer.h" |
| 11 #include "gpu/command_buffer/common/compiler_specific.h" | |
| 12 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 12 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
| 13 #include "gpu/gpu_export.h" | 13 #include "gpu/gpu_export.h" |
| 14 | 14 |
| 15 namespace gpu { | 15 namespace gpu { |
| 16 | 16 |
| 17 class CommandBufferHelper; | 17 class CommandBufferHelper; |
| 18 | 18 |
| 19 // Wraps RingBufferWrapper to provide aligned allocations. | 19 // Wraps RingBufferWrapper to provide aligned allocations. |
| 20 class AlignedRingBuffer : public RingBufferWrapper { | 20 class AlignedRingBuffer : public RingBufferWrapper { |
| 21 public: | 21 public: |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 } | 224 } |
| 225 | 225 |
| 226 unsigned int num_elements() const { | 226 unsigned int num_elements() const { |
| 227 return size() / sizeof(T); | 227 return size() / sizeof(T); |
| 228 } | 228 } |
| 229 }; | 229 }; |
| 230 | 230 |
| 231 } // namespace gpu | 231 } // namespace gpu |
| 232 | 232 |
| 233 #endif // GPU_COMMAND_BUFFER_CLIENT_TRANSFER_BUFFER_H_ | 233 #endif // GPU_COMMAND_BUFFER_CLIENT_TRANSFER_BUFFER_H_ |
| OLD | NEW |