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

Issue 1802183002: Convert CreateCdmBuffer() to use size_t for |capacity| (Closed)

Created:
4 years, 9 months ago by jrummell
Modified:
4 years, 9 months ago
Reviewers:
xhwang
CC:
chromium-reviews, feature-media-reviews_chromium.org, qsr+mojo_chromium.org, Aaron Boodman, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, eme-reviews_chromium.org, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert CreateCdmBuffer() to use size_t for |capacity| TEST=media mojo unittests pass Committed: https://crrev.com/45b8930a00cacbefdebc98834a961b78833429fd Cr-Commit-Position: refs/heads/master@{#381309}

Patch Set 1 #

Total comments: 4

Patch Set 2 : DCHECKs #

Total comments: 2

Patch Set 3 : remove cast #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -23 lines) Patch
M media/cdm/cdm_allocator.h View 2 chunks +2 lines, -1 line 0 comments Download
M media/cdm/simple_cdm_allocator.h View 2 chunks +2 lines, -1 line 0 comments Download
M media/cdm/simple_cdm_allocator.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/cdm/simple_cdm_buffer.h View 2 chunks +3 lines, -1 line 0 comments Download
M media/cdm/simple_cdm_buffer.cc View 1 2 1 chunk +8 lines, -2 lines 0 comments Download
M media/mojo/common/mojo_shared_buffer_video_frame.h View 1 chunk +1 line, -1 line 0 comments Download
M media/mojo/common/mojo_shared_buffer_video_frame_unittest.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M media/mojo/services/mojo_cdm_allocator.h View 3 chunks +5 lines, -4 lines 0 comments Download
M media/mojo/services/mojo_cdm_allocator.cc View 1 2 7 chunks +16 lines, -9 lines 0 comments Download
M media/mojo/services/mojo_cdm_allocator_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 17 (7 generated)
jrummell
PTAL
4 years, 9 months ago (2016-03-14 23:35:52 UTC) #2
xhwang
lgtm % nit for discussion https://chromiumcodereview.appspot.com/1802183002/diff/1/media/cdm/simple_cdm_buffer.cc File media/cdm/simple_cdm_buffer.cc (right): https://chromiumcodereview.appspot.com/1802183002/diff/1/media/cdm/simple_cdm_buffer.cc#newcode21 media/cdm/simple_cdm_buffer.cc:21: return nullptr; This should ...
4 years, 9 months ago (2016-03-15 06:17:22 UTC) #3
jrummell
Thanks for the review. https://codereview.chromium.org/1802183002/diff/1/media/cdm/simple_cdm_buffer.cc File media/cdm/simple_cdm_buffer.cc (right): https://codereview.chromium.org/1802183002/diff/1/media/cdm/simple_cdm_buffer.cc#newcode21 media/cdm/simple_cdm_buffer.cc:21: return nullptr; On 2016/03/15 06:17:22, ...
4 years, 9 months ago (2016-03-15 18:49:42 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1802183002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1802183002/20001
4 years, 9 months ago (2016-03-15 18:55:05 UTC) #7
xhwang
https://codereview.chromium.org/1802183002/diff/20001/media/cdm/simple_cdm_buffer.cc File media/cdm/simple_cdm_buffer.cc (right): https://codereview.chromium.org/1802183002/diff/20001/media/cdm/simple_cdm_buffer.cc#newcode20 media/cdm/simple_cdm_buffer.cc:20: static_cast<size_t>(std::numeric_limits<uint32_t>::max())); OOC, can you drop the static_cast since both ...
4 years, 9 months ago (2016-03-15 18:57:37 UTC) #8
xhwang
I unchecked the CQ for the question I have. Sorry :)
4 years, 9 months ago (2016-03-15 18:58:29 UTC) #10
jrummell
Updated. Thanks. https://codereview.chromium.org/1802183002/diff/20001/media/cdm/simple_cdm_buffer.cc File media/cdm/simple_cdm_buffer.cc (right): https://codereview.chromium.org/1802183002/diff/20001/media/cdm/simple_cdm_buffer.cc#newcode20 media/cdm/simple_cdm_buffer.cc:20: static_cast<size_t>(std::numeric_limits<uint32_t>::max())); On 2016/03/15 18:57:37, xhwang wrote: > ...
4 years, 9 months ago (2016-03-15 19:43:12 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1802183002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1802183002/40001
4 years, 9 months ago (2016-03-15 19:43:38 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 9 months ago (2016-03-15 21:00:30 UTC) #15
commit-bot: I haz the power
4 years, 9 months ago (2016-03-15 21:02:51 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/45b8930a00cacbefdebc98834a961b78833429fd
Cr-Commit-Position: refs/heads/master@{#381309}

Powered by Google App Engine
This is Rietveld 408576698