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

Unified Diff: mojo/services/media/common/cpp/fifo_allocator.h

Issue 1822333002: Motown: wholesale clang-format (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: dalesat Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « examples/media_test/media_test_app.cc ('k') | mojo/services/media/common/cpp/fifo_allocator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/media/common/cpp/fifo_allocator.h
diff --git a/mojo/services/media/common/cpp/fifo_allocator.h b/mojo/services/media/common/cpp/fifo_allocator.h
index 538223e9b169c4d53242eefbf70f8930567ae42a..06e66e5b2b9c8bc68f2eaa8ec47bc7799e83a3d5 100644
--- a/mojo/services/media/common/cpp/fifo_allocator.h
+++ b/mojo/services/media/common/cpp/fifo_allocator.h
@@ -55,31 +55,29 @@ namespace media {
// is very large and deallocation is frequently done out of order, the
// sequential searches may be a performance issue.
class FifoAllocator {
- public:
- // Returned by AllocatedRegion when the requested allocation cannot be
- // performed.
- static const uint64_t kNullOffset = std::numeric_limits<uint64_t>::max();
+ public:
+ // Returned by AllocatedRegion when the requested allocation cannot be
+ // performed.
+ static const uint64_t kNullOffset = std::numeric_limits<uint64_t>::max();
- FifoAllocator(uint64_t size);
+ FifoAllocator(uint64_t size);
- ~FifoAllocator();
+ ~FifoAllocator();
- // Returns the size of the entire buffer as determined by the call to the
- // constructor or the most recent call to Reset.
- uint64_t size() const {
- return size_;
- }
+ // Returns the size of the entire buffer as determined by the call to the
+ // constructor or the most recent call to Reset.
+ uint64_t size() const { return size_; }
- // Resets the buffer manager to its initial state (no regions allocated)
- // with a new buffer size. Also deletes all the regions in the lookaside.
- void Reset(uint64_t size);
+ // Resets the buffer manager to its initial state (no regions allocated)
+ // with a new buffer size. Also deletes all the regions in the lookaside.
+ void Reset(uint64_t size);
- // Allocates a region and returns its offset or kNullOffset if the allocation
- // could not be performed.
- uint64_t AllocateRegion(uint64_t size);
+ // Allocates a region and returns its offset or kNullOffset if the allocation
+ // could not be performed.
+ uint64_t AllocateRegion(uint64_t size);
- // Releases a previously-allocated region.
- void ReleaseRegion(uint64_t size, uint64_t offset);
+ // Releases a previously-allocated region.
+ void ReleaseRegion(uint64_t size, uint64_t offset);
private:
// List element to track allocated and free regions.
« no previous file with comments | « examples/media_test/media_test_app.cc ('k') | mojo/services/media/common/cpp/fifo_allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698