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

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

Issue 2081753002: Motown: Stop requiring size when releasing payload buffers. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 6 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 | « no previous file | 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 06e66e5b2b9c8bc68f2eaa8ec47bc7799e83a3d5..f2e07d49e02740ae53c1fa0762f0eccd8755196e 100644
--- a/mojo/services/media/common/cpp/fifo_allocator.h
+++ b/mojo/services/media/common/cpp/fifo_allocator.h
@@ -77,7 +77,7 @@ class FifoAllocator {
uint64_t AllocateRegion(uint64_t size);
// Releases a previously-allocated region.
- void ReleaseRegion(uint64_t size, uint64_t offset);
+ void ReleaseRegion(uint64_t offset);
private:
// List element to track allocated and free regions.
@@ -93,7 +93,7 @@ class FifoAllocator {
// Releases the specified region if it's found between begin (inclusive) and
// end (exclusive).
- bool Release(uint64_t size, uint64_t offset, Region* begin, Region* end);
+ bool Release(uint64_t offset, Region* begin, Region* end);
// Advances the active region to one that's at least the specified size.
// Returns false if none could be found.
« no previous file with comments | « no previous file | mojo/services/media/common/cpp/fifo_allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698