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

Issue 3007683002: Let VideoEncoderSoftwareFallbackWrapper own the wrapped encoder (Closed)

Created:
3 years, 3 months ago by magjed_webrtc
Modified:
3 years, 3 months ago
Reviewers:
andersc, brandtr
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, the sun
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Let VideoEncoderSoftwareFallbackWrapper own the wrapped encoder Currently, ownership of the wrapped hardware encoder is handled outside VideoEncoderSoftwareFallbackWrapper. It's easier if VideoEncoderSoftwareFallbackWrapper owns and relases it instead. BUG=webrtc:7925 Review-Url: https://codereview.webrtc.org/3007683002 Cr-Commit-Position: refs/heads/master@{#19572} Committed: https://chromium.googlesource.com/external/webrtc/+/f52d34d682a049028ef5f2d126721dce03a50d8b

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -51 lines) Patch
M webrtc/media/engine/videoencodersoftwarefallbackwrapper.h View 2 chunks +4 lines, -3 lines 1 comment Download
M webrtc/media/engine/videoencodersoftwarefallbackwrapper.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/media/engine/videoencodersoftwarefallbackwrapper_unittest.cc View 17 chunks +36 lines, -33 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine.h View 3 chunks +3 lines, -7 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine.cc View 3 chunks +5 lines, -6 lines 2 comments Download

Dependent Patchsets:

Messages

Total messages: 17 (10 generated)
magjed_webrtc
Anders - please take a look.
3 years, 3 months ago (2017-08-28 16:23:01 UTC) #7
andersc
Added a n00b C++ question, otherwise lgtm https://codereview.webrtc.org/3007683002/diff/1/webrtc/media/engine/webrtcvideoengine.cc File webrtc/media/engine/webrtcvideoengine.cc (right): https://codereview.webrtc.org/3007683002/diff/1/webrtc/media/engine/webrtcvideoengine.cc#newcode1604 webrtc/media/engine/webrtcvideoengine.cc:1604: codec, std::move(external_encoder))); ...
3 years, 3 months ago (2017-08-29 07:27:34 UTC) #8
magjed_webrtc
https://codereview.webrtc.org/3007683002/diff/1/webrtc/media/engine/webrtcvideoengine.cc File webrtc/media/engine/webrtcvideoengine.cc (right): https://codereview.webrtc.org/3007683002/diff/1/webrtc/media/engine/webrtcvideoengine.cc#newcode1604 webrtc/media/engine/webrtcvideoengine.cc:1604: codec, std::move(external_encoder))); On 2017/08/29 07:27:33, andersc wrote: > Is ...
3 years, 3 months ago (2017-08-29 07:56:48 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/3007683002/1
3 years, 3 months ago (2017-08-29 07:57:10 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/external/webrtc/+/f52d34d682a049028ef5f2d126721dce03a50d8b
3 years, 3 months ago (2017-08-29 07:58:58 UTC) #14
brandtr
https://codereview.webrtc.org/3007683002/diff/1/webrtc/media/engine/videoencodersoftwarefallbackwrapper.h File webrtc/media/engine/videoencodersoftwarefallbackwrapper.h (right): https://codereview.webrtc.org/3007683002/diff/1/webrtc/media/engine/videoencodersoftwarefallbackwrapper.h#newcode100 webrtc/media/engine/videoencodersoftwarefallbackwrapper.h:100: std::unique_ptr<webrtc::VideoEncoder> encoder_; drive-by question: Does this mean that it's ...
3 years, 3 months ago (2017-08-29 11:54:27 UTC) #16
brandtr
3 years, 3 months ago (2017-08-29 12:07:01 UTC) #17
Message was sent while issue was closed.
On 2017/08/29 11:54:27, brandtr wrote:
>
https://codereview.webrtc.org/3007683002/diff/1/webrtc/media/engine/videoenco...
> File webrtc/media/engine/videoencodersoftwarefallbackwrapper.h (right):
> 
>
https://codereview.webrtc.org/3007683002/diff/1/webrtc/media/engine/videoenco...
> webrtc/media/engine/videoencodersoftwarefallbackwrapper.h:100:
> std::unique_ptr<webrtc::VideoEncoder> encoder_;
> drive-by question: Does this mean that it's OK to delete all our encoders
> directly, rather than through WebRtcVideoEncoderFactory::DestroyVideoEncoder?

nvm, just found https://codereview.webrtc.org/3007643002.

Powered by Google App Engine
This is Rietveld 408576698