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

Issue 1673383002: Add allocator interface for use by cdm_adapter (Closed)

Created:
4 years, 10 months ago by jrummell
Modified:
4 years, 10 months ago
Reviewers:
xhwang
CC:
chromium-reviews, feature-media-reviews_chromium.org, eme-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add allocator interface for use by cdm_adapter Rather than allocating a buffer directly, add CdmAllocator interface that will allocate buffers as needed. Initial implementation of CdmAllocator (SimpleCdmAllocator) simply creates a new buffer every time one is needed. There is no reuse, since it will only be used for testing purposes. CdmAllocator also has an interface to create a cdm::VideoFrame, which now has the additional ability to create a media::VideoFrame using the data returned by the CDM. BUG=510088 TEST=Updated tests pass Committed: https://crrev.com/550e1c056d4456000cb4be88676d6f5f01b9efdb Cr-Commit-Position: refs/heads/master@{#375987}

Patch Set 1 #

Total comments: 18

Patch Set 2 : Simple classes #

Total comments: 10

Patch Set 3 : changes #

Total comments: 20

Patch Set 4 : add test #

Total comments: 4

Patch Set 5 : nits #

Patch Set 6 : NON_EXPORTED_BASE() #

Patch Set 7 : more Windows changes #

Patch Set 8 : add MEDIA_CDM_EXPORT for Windows #

Unified diffs Side-by-side diffs Delta from patch set Stats (+382 lines, -130 lines) Patch
M media/BUILD.gn View 1 2 3 2 chunks +7 lines, -2 lines 0 comments Download
M media/cdm/aes_decryptor_unittest.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M media/cdm/cdm_adapter.h View 1 2 3 4 chunks +9 lines, -2 lines 0 comments Download
M media/cdm/cdm_adapter.cc View 1 2 3 9 chunks +13 lines, -18 lines 0 comments Download
M media/cdm/cdm_adapter_unittest.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
A media/cdm/cdm_allocator.h View 1 2 3 4 1 chunk +42 lines, -0 lines 0 comments Download
A + media/cdm/cdm_allocator.cc View 1 2 1 chunk +6 lines, -7 lines 0 comments Download
M media/cdm/cdm_buffer_impl.h View 1 1 chunk +0 lines, -42 lines 0 comments Download
M media/cdm/cdm_buffer_impl.cc View 1 1 chunk +0 lines, -42 lines 0 comments Download
M media/cdm/cdm_helpers.h View 1 2 3 4 5 6 7 4 chunks +31 lines, -3 lines 0 comments Download
A media/cdm/simple_cdm_allocator.h View 1 2 3 4 5 6 1 chunk +31 lines, -0 lines 0 comments Download
A media/cdm/simple_cdm_allocator.cc View 1 2 3 4 1 chunk +73 lines, -0 lines 0 comments Download
A media/cdm/simple_cdm_allocator_unittest.cc View 1 2 3 1 chunk +105 lines, -0 lines 0 comments Download
A + media/cdm/simple_cdm_buffer.h View 1 2 3 chunks +8 lines, -9 lines 0 comments Download
A media/cdm/simple_cdm_buffer.cc View 1 2 1 chunk +43 lines, -0 lines 0 comments Download
M media/media.gyp View 1 2 3 2 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 30 (13 generated)
jrummell
PTAL
4 years, 10 months ago (2016-02-08 22:08:56 UTC) #2
xhwang
I skimmed the CL and have some questions about API design. We can chat offline ...
4 years, 10 months ago (2016-02-09 18:27:33 UTC) #3
jrummell
Updated based on offline comments as well as issues noted. https://codereview.chromium.org/1673383002/diff/1/media/cdm/cdm_adapter.cc File media/cdm/cdm_adapter.cc (right): https://codereview.chromium.org/1673383002/diff/1/media/cdm/cdm_adapter.cc#newcode335 ...
4 years, 10 months ago (2016-02-11 01:39:39 UTC) #5
xhwang
This looks much better! I didn't review all details. Mostly interface/design discussion. https://chromiumcodereview.appspot.com/1673383002/diff/20001/media/cdm/cdm_buffer_allocator.h File media/cdm/cdm_buffer_allocator.h ...
4 years, 10 months ago (2016-02-11 19:24:14 UTC) #6
xhwang
BTW, the CL title is not accurate now, since the allocator can also allocate video ...
4 years, 10 months ago (2016-02-11 19:50:19 UTC) #7
jrummell
Updated (code and description). https://codereview.chromium.org/1673383002/diff/20001/media/cdm/cdm_buffer_allocator.h File media/cdm/cdm_buffer_allocator.h (right): https://codereview.chromium.org/1673383002/diff/20001/media/cdm/cdm_buffer_allocator.h#newcode25 media/cdm/cdm_buffer_allocator.h:25: // buffer, and must call ...
4 years, 10 months ago (2016-02-11 22:08:16 UTC) #9
xhwang
Looking really nice! I just have some comments, mostly nits. https://chromiumcodereview.appspot.com/1673383002/diff/40001/media/cdm/cdm_adapter.h File media/cdm/cdm_adapter.h (right): https://chromiumcodereview.appspot.com/1673383002/diff/40001/media/cdm/cdm_adapter.h#newcode44 ...
4 years, 10 months ago (2016-02-12 08:45:30 UTC) #10
jrummell
Updated. https://codereview.chromium.org/1673383002/diff/40001/media/cdm/cdm_adapter.h File media/cdm/cdm_adapter.h (right): https://codereview.chromium.org/1673383002/diff/40001/media/cdm/cdm_adapter.h#newcode44 media/cdm/cdm_adapter.h:44: // |cdm_config|. |allocator| is to be used whenever ...
4 years, 10 months ago (2016-02-12 23:14:20 UTC) #11
xhwang
LGTM with nits. Thanks! https://codereview.chromium.org/1673383002/diff/60001/media/cdm/cdm_allocator.h File media/cdm/cdm_allocator.h (right): https://codereview.chromium.org/1673383002/diff/60001/media/cdm/cdm_allocator.h#newcode26 media/cdm/cdm_allocator.h:26: // Allocates a buffer with ...
4 years, 10 months ago (2016-02-12 23:26:08 UTC) #12
jrummell
Thanks for the reviews. https://codereview.chromium.org/1673383002/diff/60001/media/cdm/cdm_allocator.h File media/cdm/cdm_allocator.h (right): https://codereview.chromium.org/1673383002/diff/60001/media/cdm/cdm_allocator.h#newcode26 media/cdm/cdm_allocator.h:26: // Allocates a buffer with ...
4 years, 10 months ago (2016-02-13 00:02:43 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1673383002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1673383002/80001
4 years, 10 months ago (2016-02-13 00:04:27 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/145275)
4 years, 10 months ago (2016-02-13 01:15:55 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1673383002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1673383002/100001
4 years, 10 months ago (2016-02-16 18:56:42 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/146039)
4 years, 10 months ago (2016-02-16 20:01:39 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1673383002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1673383002/140001
4 years, 10 months ago (2016-02-17 20:18:47 UTC) #26
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 10 months ago (2016-02-17 21:38:03 UTC) #28
commit-bot: I haz the power
4 years, 10 months ago (2016-02-17 21:40:24 UTC) #30
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/550e1c056d4456000cb4be88676d6f5f01b9efdb
Cr-Commit-Position: refs/heads/master@{#375987}

Powered by Google App Engine
This is Rietveld 408576698