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

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

Issue 11419224: Add missing (and remove superfluous) 'explicit' from constructors. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + remove non-straightforward changes Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « gpu/command_buffer/client/share_group.cc ('k') | gpu/command_buffer/service/buffer_manager.h » ('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_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 "../../gpu_export.h" 8 #include "../../gpu_export.h"
9 #include "../common/buffer.h" 9 #include "../common/buffer.h"
10 #include "../common/compiler_specific.h" 10 #include "../common/compiler_specific.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 virtual void* Alloc(unsigned int size) = 0; 80 virtual void* Alloc(unsigned int size) = 0;
81 81
82 virtual RingBuffer::Offset GetOffset(void* pointer) const = 0; 82 virtual RingBuffer::Offset GetOffset(void* pointer) const = 0;
83 83
84 virtual void FreePendingToken(void* p, unsigned int token) = 0; 84 virtual void FreePendingToken(void* p, unsigned int token) = 0;
85 }; 85 };
86 86
87 // Class that manages the transfer buffer. 87 // Class that manages the transfer buffer.
88 class GPU_EXPORT TransferBuffer : public TransferBufferInterface { 88 class GPU_EXPORT TransferBuffer : public TransferBufferInterface {
89 public: 89 public:
90 TransferBuffer(CommandBufferHelper* helper); 90 explicit TransferBuffer(CommandBufferHelper* helper);
91 virtual ~TransferBuffer(); 91 virtual ~TransferBuffer();
92 92
93 // Overridden from TransferBufferInterface. 93 // Overridden from TransferBufferInterface.
94 virtual bool Initialize( 94 virtual bool Initialize(
95 unsigned int default_buffer_size, 95 unsigned int default_buffer_size,
96 unsigned int result_size, 96 unsigned int result_size,
97 unsigned int min_buffer_size, 97 unsigned int min_buffer_size,
98 unsigned int max_buffer_size, 98 unsigned int max_buffer_size,
99 unsigned int alignment, 99 unsigned int alignment,
100 unsigned int size_to_flush) OVERRIDE; 100 unsigned int size_to_flush) OVERRIDE;
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/share_group.cc ('k') | gpu/command_buffer/service/buffer_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698