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

Issue 1460693004: Add helper classes to for managing shared buffers. (Closed)

Created:
5 years, 1 month ago by dalesat
Modified:
4 years, 11 months ago
Reviewers:
jamesr, jeffbrown, johngro
CC:
mojo-reviews_chromium.org, gregsimon, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Add helper classes to for managing shared buffers. First of a series of patches for Motown. FifoAllocator - does the bookkeeping to implement heap semantics on an imaginary buffer assuming normal streaming behavior (first allocated, first released). MappedSharedBuffer - owns a shared buffer, maps and unmaps it and does offset/pointer conversions. SharedMediaBufferAllocator - derived from MappedSharedBuffer, adds heap semantics using FifoAllocator and thread safety. BUG=none R=johngro@google.com Committed: https://chromium.googlesource.com/external/mojo/+/9553aed2f2d15ac06050a6f1ec70c21670fe073b

Patch Set 1 #

Patch Set 2 : fix .gitignore #

Total comments: 26

Patch Set 3 : sync #

Patch Set 4 : Misc updates in response to feedback #

Patch Set 5 : Added const keyword to const methods. #

Total comments: 2

Patch Set 6 : sync #

Patch Set 7 : Removed incorrect DCHECK from FifoAllocator destructor. #

Patch Set 8 : sync #

Patch Set 9 : sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+648 lines, -1 line) Patch
M .gitignore View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M mojo/services/media/common/cpp/BUILD.gn View 1 chunk +6 lines, -0 lines 0 comments Download
A mojo/services/media/common/cpp/fifo_allocator.h View 1 2 3 4 1 chunk +147 lines, -0 lines 0 comments Download
A mojo/services/media/common/cpp/fifo_allocator.cc View 1 2 3 4 5 6 1 chunk +222 lines, -0 lines 0 comments Download
A mojo/services/media/common/cpp/mapped_shared_buffer.h View 1 2 3 4 1 chunk +81 lines, -0 lines 0 comments Download
A mojo/services/media/common/cpp/mapped_shared_buffer.cc View 1 2 3 4 1 chunk +104 lines, -0 lines 0 comments Download
A mojo/services/media/common/cpp/shared_media_buffer_allocator.h View 1 chunk +67 lines, -0 lines 0 comments Download
A mojo/services/media/common/cpp/shared_media_buffer_allocator.cc View 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
dalesat
Please take a look. Thanks!
5 years, 1 month ago (2015-11-19 19:07:26 UTC) #2
johngro
https://codereview.chromium.org/1460693004/diff/20001/mojo/services/media/common/cpp/fifo_allocator.cc File mojo/services/media/common/cpp/fifo_allocator.cc (right): https://codereview.chromium.org/1460693004/diff/20001/mojo/services/media/common/cpp/fifo_allocator.cc#newcode13 mojo/services/media/common/cpp/fifo_allocator.cc:13: // front_ and free_ need to be set to ...
5 years ago (2015-12-05 00:45:55 UTC) #3
dalesat
https://codereview.chromium.org/1460693004/diff/20001/mojo/services/media/common/cpp/fifo_allocator.cc File mojo/services/media/common/cpp/fifo_allocator.cc (right): https://codereview.chromium.org/1460693004/diff/20001/mojo/services/media/common/cpp/fifo_allocator.cc#newcode13 mojo/services/media/common/cpp/fifo_allocator.cc:13: // front_ and free_ need to be set to ...
5 years ago (2015-12-07 18:30:20 UTC) #4
johngro
+1 I'd still like James or Jeff to make a quick pass, but LGTM in ...
5 years ago (2015-12-10 18:38:08 UTC) #5
dalesat
https://codereview.chromium.org/1460693004/diff/80001/mojo/services/media/common/cpp/fifo_allocator.cc File mojo/services/media/common/cpp/fifo_allocator.cc (right): https://codereview.chromium.org/1460693004/diff/80001/mojo/services/media/common/cpp/fifo_allocator.cc#newcode134 mojo/services/media/common/cpp/fifo_allocator.cc:134: put_free(active_); On 2015/12/10 18:38:08, johngro wrote: > If we ...
5 years ago (2015-12-10 22:34:39 UTC) #6
dalesat
4 years, 11 months ago (2016-01-06 21:44:11 UTC) #8
Message was sent while issue was closed.
Committed patchset #9 (id:160001) manually as
9553aed2f2d15ac06050a6f1ec70c21670fe073b (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698