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

Issue 2933573003: media: Followup changes to VideoFrame StructTraits. (Closed)

Created:
3 years, 6 months ago by sandersd (OOO until July 31)
Modified:
3 years, 6 months ago
Reviewers:
xhwang, dcheng
CC:
chromium-reviews, feature-media-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, posciak+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, alokp+watch_chromium.org, darin (slow to review)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

media: Followup changes to VideoFrame StructTraits. Included in this change: - Actually remove the TypeConverters. - Replace |end_of_stream| with a |data| union member. - Gentler handling of |visible_rect| problems. BUG=611224 Review-Url: https://codereview.chromium.org/2933573003 Cr-Commit-Position: refs/heads/master@{#479488} Committed: https://chromium.googlesource.com/chromium/src/+/2e986179979a89c8a2bdf55d139cd56baacd8573

Patch Set 1 #

Total comments: 2

Patch Set 2 : Move |visible_rect| validation to VideoFrame::VideoFrame(). #

Patch Set 3 : ToString() #

Total comments: 7

Patch Set 4 : const& #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -100 lines) Patch
M media/base/video_frame.cc View 1 2 3 2 chunks +14 lines, -1 line 0 comments Download
M media/mojo/common/media_type_converters.h View 2 chunks +0 lines, -14 lines 0 comments Download
M media/mojo/common/media_type_converters.cc View 2 chunks +0 lines, -67 lines 0 comments Download
M media/mojo/interfaces/media_types.mojom View 1 chunk +7 lines, -5 lines 0 comments Download
M media/mojo/interfaces/video_frame_struct_traits.h View 1 chunk +0 lines, -4 lines 0 comments Download
M media/mojo/interfaces/video_frame_struct_traits.cc View 1 3 chunks +6 lines, -9 lines 0 comments Download

Messages

Total messages: 24 (10 generated)
sandersd (OOO until July 31)
3 years, 6 months ago (2017-06-09 22:36:51 UTC) #2
dcheng
LGTM I like this approach https://codereview.chromium.org/2933573003/diff/1/media/mojo/interfaces/video_frame_struct_traits.cc File media/mojo/interfaces/video_frame_struct_traits.cc (right): https://codereview.chromium.org/2933573003/diff/1/media/mojo/interfaces/video_frame_struct_traits.cc#newcode108 media/mojo/interfaces/video_frame_struct_traits.cc:108: visible_rect.Intersect(gfx::Rect(coded_size)); Hmm, the original ...
3 years, 6 months ago (2017-06-10 00:40:55 UTC) #3
sandersd (OOO until July 31)
https://codereview.chromium.org/2933573003/diff/1/media/mojo/interfaces/video_frame_struct_traits.cc File media/mojo/interfaces/video_frame_struct_traits.cc (right): https://codereview.chromium.org/2933573003/diff/1/media/mojo/interfaces/video_frame_struct_traits.cc#newcode108 media/mojo/interfaces/video_frame_struct_traits.cc:108: visible_rect.Intersect(gfx::Rect(coded_size)); On 2017/06/10 00:40:55, dcheng wrote: > Hmm, the ...
3 years, 6 months ago (2017-06-10 01:15:31 UTC) #4
dcheng
On 2017/06/10 01:15:31, sandersd wrote: > https://codereview.chromium.org/2933573003/diff/1/media/mojo/interfaces/video_frame_struct_traits.cc > File media/mojo/interfaces/video_frame_struct_traits.cc (right): > > https://codereview.chromium.org/2933573003/diff/1/media/mojo/interfaces/video_frame_struct_traits.cc#newcode108 > ...
3 years, 6 months ago (2017-06-10 05:43:47 UTC) #5
sandersd (OOO until July 31)
> Can you help me understand which processes the frame is being sent between? Is ...
3 years, 6 months ago (2017-06-12 18:26:48 UTC) #6
dcheng
On 2017/06/12 18:26:48, sandersd wrote: > > Can you help me understand which processes the ...
3 years, 6 months ago (2017-06-12 20:31:33 UTC) #7
sandersd (OOO until July 31)
On 2017/06/12 20:31:33, dcheng wrote: > On 2017/06/12 18:26:48, sandersd wrote: > > > Can ...
3 years, 6 months ago (2017-06-12 22:06:06 UTC) #8
sandersd (OOO until July 31)
xhwang@: Please review changes to video_frame.cc.
3 years, 6 months ago (2017-06-12 22:06:37 UTC) #10
xhwang
lgtm
3 years, 6 months ago (2017-06-13 00:37:41 UTC) #15
dcheng
LGTM with nits https://codereview.chromium.org/2933573003/diff/40001/media/base/video_frame.cc File media/base/video_frame.cc (right): https://codereview.chromium.org/2933573003/diff/40001/media/base/video_frame.cc#newcode29 media/base/video_frame.cc:29: gfx::Rect Intersection(gfx::Rect a, gfx::Rect b) { ...
3 years, 6 months ago (2017-06-13 07:10:16 UTC) #16
sandersd (OOO until July 31)
https://codereview.chromium.org/2933573003/diff/40001/media/base/video_frame.cc File media/base/video_frame.cc (right): https://codereview.chromium.org/2933573003/diff/40001/media/base/video_frame.cc#newcode29 media/base/video_frame.cc:29: gfx::Rect Intersection(gfx::Rect a, gfx::Rect b) { On 2017/06/13 07:10:16, ...
3 years, 6 months ago (2017-06-13 17:50:15 UTC) #17
dcheng
still lgtm https://codereview.chromium.org/2933573003/diff/40001/media/mojo/interfaces/video_frame_struct_traits.cc File media/mojo/interfaces/video_frame_struct_traits.cc (right): https://codereview.chromium.org/2933573003/diff/40001/media/mojo/interfaces/video_frame_struct_traits.cc#newcode107 media/mojo/interfaces/video_frame_struct_traits.cc:107: if (!gfx::Rect(coded_size).Contains(visible_rect)) On 2017/06/13 17:50:15, sandersd wrote: ...
3 years, 6 months ago (2017-06-14 17:46:48 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2933573003/60001
3 years, 6 months ago (2017-06-14 18:13:08 UTC) #21
commit-bot: I haz the power
3 years, 6 months ago (2017-06-14 20:29:33 UTC) #24
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/2e986179979a89c8a2bdf55d139c...

Powered by Google App Engine
This is Rietveld 408576698