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

Unified Diff: mojo/services/media/common/cpp/shared_media_buffer_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 | « mojo/services/media/common/cpp/fifo_allocator.cc ('k') | services/media/framework/packet.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/media/common/cpp/shared_media_buffer_allocator.h
diff --git a/mojo/services/media/common/cpp/shared_media_buffer_allocator.h b/mojo/services/media/common/cpp/shared_media_buffer_allocator.h
index 994e83fdfd259bc431f19447a3dd3c75e94cf1cc..3700a139256ddfd726ff22094ba63355b43f0cce 100644
--- a/mojo/services/media/common/cpp/shared_media_buffer_allocator.h
+++ b/mojo/services/media/common/cpp/shared_media_buffer_allocator.h
@@ -36,9 +36,9 @@ class SharedMediaBufferAllocator : public MappedSharedBuffer {
// Releases a region of the buffer previously allocated by calling
// AllocateRegionByOffset.
- void ReleaseRegionByOffset(uint64_t size, uint64_t offset) {
+ void ReleaseRegionByOffset(uint64_t offset) {
std::lock_guard<std::mutex> lock(lock_);
- fifo_allocator_.ReleaseRegion(size, offset);
+ fifo_allocator_.ReleaseRegion(offset);
}
// Allocates a region of the buffer returning a pointer. If the requested
@@ -49,8 +49,8 @@ class SharedMediaBufferAllocator : public MappedSharedBuffer {
// Releases a region of the buffer previously allocated by calling
// AllocateRegion.
- void ReleaseRegion(uint64_t size, void* ptr) {
- ReleaseRegionByOffset(size, OffsetFromPtr(ptr));
+ void ReleaseRegion(void* ptr) {
+ ReleaseRegionByOffset(OffsetFromPtr(ptr));
}
protected:
« no previous file with comments | « mojo/services/media/common/cpp/fifo_allocator.cc ('k') | services/media/framework/packet.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698