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

Issue 207593002: Cast: Enable use of VideoEncodeAccelerator for hardware video encoding (Closed)

Created:
6 years, 9 months ago by Alpha Left Google
Modified:
6 years, 9 months ago
CC:
chromium-reviews, fischman+watch_chromium.org, hclam+watch_chromium.org, imcheng+watch_chromium.org, hguihot+watch_chromium.org, jasonroberts+watch_google.com, mcasas+watch_chromium.org, pwestin+watch_google.com, feature-media-reviews_chromium.org, miu+watch_chromium.org, wjia+watch_chromium.org, hubbe+watch_chromium.org, mikhal+watch_chromium.org
Visibility:
Public.

Description

Cast: Enable use of VideoEncodeAccelerator for hardware video encoding Cast streaming library is currently using GpuVideoAcceleratorFactories as the interface to access a VideoEncodeAccelerator. This interface is not actually correct since Content API in Chrome doesn't provide that. Moreover GpuVideoAcceleratorFactories also covers accelerated video decoding which is not needed for a cast sender. This code removes the use of GpuVideoAcceleratorFactories. It is replaced by two callbacks. One for allocating a VideoEncodeAccelerator and the second one allocates base::SharedMemory to store output data. BUG=354267 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=258762

Patch Set 1 #

Patch Set 2 : comments #

Total comments: 14

Patch Set 3 : typedef #

Unified diffs Side-by-side diffs Delta from patch set Stats (+263 lines, -274 lines) Patch
M chrome/renderer/media/cast_rtp_stream.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/media/cast_session_delegate.cc View 1 2 2 chunks +16 lines, -3 lines 0 comments Download
M media/cast/cast.gyp View 1 chunk +0 lines, -2 lines 0 comments Download
M media/cast/cast_config.h View 1 2 2 chunks +16 lines, -0 lines 0 comments Download
M media/cast/cast_sender.h View 2 chunks +2 lines, -3 lines 0 comments Download
M media/cast/cast_sender_impl.h View 1 chunk +2 lines, -1 line 0 comments Download
M media/cast/cast_sender_impl.cc View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M media/cast/test/end2end_unittest.cc View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
D media/cast/test/fake_gpu_video_accelerator_factories.h View 1 chunk +0 lines, -62 lines 0 comments Download
D media/cast/test/fake_gpu_video_accelerator_factories.cc View 1 chunk +0 lines, -58 lines 0 comments Download
M media/cast/test/fake_video_encode_accelerator.h View 2 chunks +1 line, -2 lines 0 comments Download
M media/cast/test/sender.cc View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M media/cast/test/utility/default_config.h View 1 chunk +7 lines, -0 lines 0 comments Download
M media/cast/test/utility/default_config.cc View 1 2 2 chunks +25 lines, -0 lines 0 comments Download
M media/cast/video_sender/external_video_encoder.h View 3 chunks +9 lines, -2 lines 0 comments Download
M media/cast/video_sender/external_video_encoder.cc View 1 11 chunks +96 lines, -113 lines 0 comments Download
M media/cast/video_sender/external_video_encoder_unittest.cc View 1 2 3 chunks +27 lines, -5 lines 0 comments Download
M media/cast/video_sender/video_sender.h View 2 chunks +2 lines, -3 lines 0 comments Download
M media/cast/video_sender/video_sender.cc View 1 2 2 chunks +6 lines, -4 lines 0 comments Download
M media/cast/video_sender/video_sender_unittest.cc View 1 2 4 chunks +37 lines, -11 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Alpha Left Google
6 years, 9 months ago (2014-03-21 02:54:18 UTC) #1
Alpha Left Google
Adding sheu and hshi. They can also review this change.
6 years, 9 months ago (2014-03-21 19:08:19 UTC) #2
pwestin
2 more typedefs please https://codereview.chromium.org/207593002/diff/20001/media/cast/cast_config.h File media/cast/cast_config.h (right): https://codereview.chromium.org/207593002/diff/20001/media/cast/cast_config.h#newcode145 media/cast/cast_config.h:145: const base::Callback<void(scoped_refptr<base::SingleThreadTaskRunner>, const base::Callback<void(scoped_refptr<base::SingleThreadTaskRunner>, scoped_ptr<media::VideoEncodeAccelerator>)>&) ...
6 years, 9 months ago (2014-03-21 21:02:01 UTC) #3
Alpha Left Google
https://codereview.chromium.org/207593002/diff/20001/media/cast/cast_config.h File media/cast/cast_config.h (right): https://codereview.chromium.org/207593002/diff/20001/media/cast/cast_config.h#newcode145 media/cast/cast_config.h:145: const base::Callback<void(scoped_refptr<base::SingleThreadTaskRunner>, On 2014/03/21 21:02:02, pwestin wrote: > const ...
6 years, 9 months ago (2014-03-21 21:37:12 UTC) #4
pwestin
lgtm
6 years, 9 months ago (2014-03-21 21:42:45 UTC) #5
Alpha Left Google
The CQ bit was checked by hclam@chromium.org
6 years, 9 months ago (2014-03-21 21:47:26 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hclam@chromium.org/207593002/30001
6 years, 9 months ago (2014-03-21 21:48:46 UTC) #7
commit-bot: I haz the power
6 years, 9 months ago (2014-03-22 03:20:33 UTC) #8
Message was sent while issue was closed.
Change committed as 258762

Powered by Google App Engine
This is Rietveld 408576698