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

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

Issue 629913002: Replacing the OVERRIDE with override and FINAL with final in gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Included autogen python file for OVERRIDE Created 6 years, 2 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_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/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "gpu/command_buffer/client/ring_buffer.h" 10 #include "gpu/command_buffer/client/ring_buffer.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 TransferBuffer(CommandBufferHelper* helper); 56 TransferBuffer(CommandBufferHelper* helper);
57 virtual ~TransferBuffer(); 57 virtual ~TransferBuffer();
58 58
59 // Overridden from TransferBufferInterface. 59 // Overridden from TransferBufferInterface.
60 virtual bool Initialize( 60 virtual bool Initialize(
61 unsigned int default_buffer_size, 61 unsigned int default_buffer_size,
62 unsigned int result_size, 62 unsigned int result_size,
63 unsigned int min_buffer_size, 63 unsigned int min_buffer_size,
64 unsigned int max_buffer_size, 64 unsigned int max_buffer_size,
65 unsigned int alignment, 65 unsigned int alignment,
66 unsigned int size_to_flush) OVERRIDE; 66 unsigned int size_to_flush) override;
67 virtual int GetShmId() OVERRIDE; 67 virtual int GetShmId() override;
68 virtual void* GetResultBuffer() OVERRIDE; 68 virtual void* GetResultBuffer() override;
69 virtual int GetResultOffset() OVERRIDE; 69 virtual int GetResultOffset() override;
70 virtual void Free() OVERRIDE; 70 virtual void Free() override;
71 virtual bool HaveBuffer() const OVERRIDE; 71 virtual bool HaveBuffer() const override;
72 virtual void* AllocUpTo( 72 virtual void* AllocUpTo(
73 unsigned int size, unsigned int* size_allocated) OVERRIDE; 73 unsigned int size, unsigned int* size_allocated) override;
74 virtual void* Alloc(unsigned int size) OVERRIDE; 74 virtual void* Alloc(unsigned int size) override;
75 virtual RingBuffer::Offset GetOffset(void* pointer) const OVERRIDE; 75 virtual RingBuffer::Offset GetOffset(void* pointer) const override;
76 virtual void FreePendingToken(void* p, unsigned int token) OVERRIDE; 76 virtual void FreePendingToken(void* p, unsigned int token) override;
77 77
78 // These are for testing. 78 // These are for testing.
79 unsigned int GetCurrentMaxAllocationWithoutRealloc() const; 79 unsigned int GetCurrentMaxAllocationWithoutRealloc() const;
80 unsigned int GetMaxAllocation() const; 80 unsigned int GetMaxAllocation() const;
81 81
82 private: 82 private:
83 // Tries to reallocate the ring buffer if it's not large enough for size. 83 // Tries to reallocate the ring buffer if it's not large enough for size.
84 void ReallocateRingBuffer(unsigned int size); 84 void ReallocateRingBuffer(unsigned int size);
85 85
86 void AllocateRingBuffer(unsigned int size); 86 void AllocateRingBuffer(unsigned int size);
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 } 190 }
191 191
192 unsigned int num_elements() const { 192 unsigned int num_elements() const {
193 return size() / sizeof(T); 193 return size() / sizeof(T);
194 } 194 }
195 }; 195 };
196 196
197 } // namespace gpu 197 } // namespace gpu
198 198
199 #endif // GPU_COMMAND_BUFFER_CLIENT_TRANSFER_BUFFER_H_ 199 #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/client/transfer_buffer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698