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

Issue 170843004: Pass Client pointer in Initialize() for VDA/VEA (Closed)

Created:
6 years, 10 months ago by sheu
Modified:
6 years, 10 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, pwestin+watch_google.com, mikhal+watch_chromium.org, hclam+watch_chromium.org, fischman+watch_chromium.org, jasonroberts+watch_google.com, jam, mcasas+watch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, feature-media-reviews_chromium.org, hguihot+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, wjia+watch_chromium.org, hubbe+watch_chromium.org, miu+watch_chromium.org, Pawel Osciak, Ami GONE FROM CHROMIUM
Visibility:
Public.

Description

Pass Client pointer in Initialize() for VDA/VEA Wait until Initialize() is called on a Video{Decode,Encode}Accelerator to pass in its Client pointer. This is done to better separate the construction and initialization of the VDA/VEA, so its Client does not have to guarantee its own lifetime until it it is ready to call Initialize() (since the VDA/VEA expects is Client to be valid until itself is Destroy()ed). BUG=325984 TEST=local build, run on CrOS snow, build on desktop Linux Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=253728

Patch Set 1 : d73c3897 Initial. #

Patch Set 2 : b0ec4672 Build fixes. #

Total comments: 23

Patch Set 3 : 48f212da fischman@ comments. #

Total comments: 3

Patch Set 4 : 5df65f20 VDA/VEA Initialize() argument order. #

Patch Set 5 : e4b7000d Rebase, RTCVideoDecoderTest fix. #

Patch Set 6 : 6c6fc334 Rebase. #

Patch Set 7 : 50e826de Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+215 lines, -226 lines) Patch
M content/common/gpu/client/command_buffer_proxy_impl.h View 1 chunk +3 lines, -4 lines 0 comments Download
M content/common/gpu/client/command_buffer_proxy_impl.cc View 2 chunks +2 lines, -5 lines 0 comments Download
M content/common/gpu/client/gpu_channel_host.h View 1 chunk +2 lines, -4 lines 0 comments Download
M content/common/gpu/client/gpu_channel_host.cc View 2 chunks +4 lines, -6 lines 0 comments Download
M content/common/gpu/client/gpu_video_decode_accelerator_host.h View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M content/common/gpu/client/gpu_video_decode_accelerator_host.cc View 1 2 3 3 chunks +4 lines, -7 lines 0 comments Download
M content/common/gpu/client/gpu_video_encode_accelerator_host.h View 1 2 3 3 chunks +8 lines, -8 lines 0 comments Download
M content/common/gpu/client/gpu_video_encode_accelerator_host.cc View 1 2 3 4 chunks +7 lines, -6 lines 0 comments Download
M content/common/gpu/media/android_video_decode_accelerator.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/gpu/media/android_video_decode_accelerator.cc View 1 2 3 1 chunk +6 lines, -6 lines 0 comments Download
M content/common/gpu/media/android_video_decode_accelerator_unittest.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M content/common/gpu/media/android_video_encode_accelerator.h View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M content/common/gpu/media/android_video_encode_accelerator.cc View 1 2 3 9 chunks +22 lines, -21 lines 0 comments Download
M content/common/gpu/media/dxva_video_decode_accelerator.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/gpu/media/dxva_video_decode_accelerator.cc View 1 2 3 2 chunks +5 lines, -3 lines 0 comments Download
M content/common/gpu/media/exynos_video_encode_accelerator.h View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M content/common/gpu/media/exynos_video_encode_accelerator.cc View 1 2 3 5 chunks +9 lines, -10 lines 0 comments Download
M content/common/gpu/media/gpu_video_decode_accelerator.cc View 1 2 3 4 chunks +4 lines, -6 lines 0 comments Download
M content/common/gpu/media/gpu_video_encode_accelerator.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M content/common/gpu/media/v4l2_video_decode_accelerator.h View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M content/common/gpu/media/v4l2_video_decode_accelerator.cc View 1 2 3 5 chunks +7 lines, -7 lines 0 comments Download
M content/common/gpu/media/vaapi_video_decode_accelerator.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M content/common/gpu/media/vaapi_video_decode_accelerator.cc View 1 2 3 5 chunks +7 lines, -8 lines 0 comments Download
M content/common/gpu/media/video_decode_accelerator_unittest.cc View 1 2 3 4 chunks +2 lines, -4 lines 0 comments Download
M content/common/gpu/media/video_encode_accelerator_unittest.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M content/public/renderer/video_encode_accelerator.h View 1 chunk +1 line, -1 line 0 comments Download
M content/public/renderer/video_encode_accelerator.cc View 6 1 chunk +2 lines, -3 lines 0 comments Download
M content/renderer/media/pepper_platform_video_decoder.h View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M content/renderer/media/pepper_platform_video_decoder.cc View 1 2 3 2 chunks +9 lines, -11 lines 0 comments Download
M content/renderer/media/renderer_gpu_video_accelerator_factories.h View 6 1 chunk +2 lines, -5 lines 0 comments Download
M content/renderer/media/renderer_gpu_video_accelerator_factories.cc View 6 1 chunk +4 lines, -6 lines 0 comments Download
M content/renderer/media/rtc_video_decoder.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M content/renderer/media/rtc_video_decoder_unittest.cc View 1 2 3 4 1 chunk +6 lines, -3 lines 0 comments Download
M content/renderer/media/rtc_video_encoder.cc View 1 2 3 1 chunk +6 lines, -3 lines 0 comments Download
M content/renderer/pepper/ppb_video_decoder_impl.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M media/cast/test/fake_gpu_video_accelerator_factories.h View 2 chunks +3 lines, -4 lines 0 comments Download
M media/cast/test/fake_gpu_video_accelerator_factories.cc View 1 3 chunks +4 lines, -6 lines 0 comments Download
M media/cast/test/fake_video_encode_accelerator.h View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M media/cast/test/fake_video_encode_accelerator.cc View 1 2 3 2 chunks +5 lines, -8 lines 0 comments Download
M media/cast/video_sender/external_video_encoder.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M media/filters/gpu_video_accelerator_factories.h View 3 chunks +15 lines, -8 lines 0 comments Download
M media/filters/gpu_video_decoder.cc View 1 2 3 4 5 6 1 chunk +2 lines, -3 lines 0 comments Download
M media/filters/mock_gpu_video_accelerator_factories.h View 2 chunks +6 lines, -9 lines 0 comments Download
M media/filters/mock_gpu_video_accelerator_factories.cc View 1 chunk +4 lines, -7 lines 0 comments Download
M media/video/mock_video_decode_accelerator.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M media/video/video_decode_accelerator.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M media/video/video_encode_accelerator.h View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
sheu
CCing people for information purposes at the moment. I'm going to make sure this doesn't ...
6 years, 10 months ago (2014-02-19 00:28:11 UTC) #1
sheu
Time to start reviewing. hshi@: PTAL at media/video/video_encode_accelerator.h and media/video/video_decode_accelerator.h and see if it fits ...
6 years, 10 months ago (2014-02-19 21:11:01 UTC) #2
hshi1
On 2014/02/19 21:11:01, sheu wrote: > Time to start reviewing. > > hshi@: PTAL at ...
6 years, 10 months ago (2014-02-19 21:13:45 UTC) #3
sheu
Since fischman@ is out: scherkus@: PTAL, thanks. Most of the CL (i.e. all the VDA ...
6 years, 10 months ago (2014-02-19 23:20:26 UTC) #4
scherkus (not reviewing)
lgtm w/ nit https://chromiumcodereview.appspot.com/170843004/diff/250001/media/video/video_encode_accelerator.h File media/video/video_encode_accelerator.h (right): https://chromiumcodereview.appspot.com/170843004/diff/250001/media/video/video_encode_accelerator.h#newcode113 media/video/video_encode_accelerator.h:113: media::VideoFrame::Format input_format, nit: remove media:: ?
6 years, 10 months ago (2014-02-20 18:52:08 UTC) #5
sheu
sievers@: PTAL at content/common/gpu/client/*. Thanks!
6 years, 10 months ago (2014-02-21 02:03:53 UTC) #6
sheu
sievers@: PTAL at content/common/gpu/client/*. Thanks!
6 years, 10 months ago (2014-02-24 22:08:31 UTC) #7
Ami GONE FROM CHROMIUM
bunch o' nits. https://chromiumcodereview.appspot.com/170843004/diff/250001/content/common/gpu/client/gpu_video_decode_accelerator_host.cc File content/common/gpu/client/gpu_video_decode_accelerator_host.cc (right): https://chromiumcodereview.appspot.com/170843004/diff/250001/content/common/gpu/client/gpu_video_decode_accelerator_host.cc#newcode23 content/common/gpu/client/gpu_video_decode_accelerator_host.cc:23: GpuVideoDecodeAcceleratorHost::GpuVideoDecodeAcceleratorHost( NULL-initialize client_ for hygiene. https://chromiumcodereview.appspot.com/170843004/diff/250001/content/common/gpu/client/gpu_video_decode_accelerator_host.h ...
6 years, 10 months ago (2014-02-24 23:12:40 UTC) #8
sheu
Updated, PTAL. Left a comment about the ordering of parameters to Initialize(). Let me know. ...
6 years, 10 months ago (2014-02-24 23:48:20 UTC) #9
Ami GONE FROM CHROMIUM
PS#3 LGTM https://chromiumcodereview.appspot.com/170843004/diff/250001/media/video/video_decode_accelerator.h File media/video/video_decode_accelerator.h (right): https://chromiumcodereview.appspot.com/170843004/diff/250001/media/video/video_decode_accelerator.h#newcode94 media/video/video_decode_accelerator.h:94: virtual bool Initialize(Client* client, VideoCodecProfile profile) = ...
6 years, 10 months ago (2014-02-25 00:01:34 UTC) #10
no sievers
On 2014/02/24 22:08:31, sheu wrote: > sievers@: PTAL at content/common/gpu/client/*. Thanks! lgtm
6 years, 10 months ago (2014-02-25 00:04:57 UTC) #11
sheu
Arguments moved for both VDA and VEA. https://chromiumcodereview.appspot.com/170843004/diff/740001/media/filters/gpu_video_decoder.cc File media/filters/gpu_video_decoder.cc (right): https://chromiumcodereview.appspot.com/170843004/diff/740001/media/filters/gpu_video_decoder.cc#newcode194 media/filters/gpu_video_decoder.cc:194: if (!vda_ ...
6 years, 10 months ago (2014-02-25 00:37:15 UTC) #12
sheu
joi@: PTAL at content/public/renderer/* yzshen@: PTAL content/renderer/pepper/ppb_video_decoder_impl.cc Both should be simple. Thanks!
6 years, 10 months ago (2014-02-25 00:41:16 UTC) #13
Ami GONE FROM CHROMIUM
Still LGTMl; thanks for reordering. https://chromiumcodereview.appspot.com/170843004/diff/740001/media/filters/gpu_video_decoder.cc File media/filters/gpu_video_decoder.cc (right): https://chromiumcodereview.appspot.com/170843004/diff/740001/media/filters/gpu_video_decoder.cc#newcode194 media/filters/gpu_video_decoder.cc:194: if (!vda_ || !vda_->Initialize(this, ...
6 years, 10 months ago (2014-02-25 00:50:50 UTC) #14
Jói
//content/public/renderer LGTM
6 years, 10 months ago (2014-02-25 08:59:50 UTC) #15
yzshen1
ppb_video_decoder_impl.cc LGTM
6 years, 10 months ago (2014-02-25 22:05:40 UTC) #16
sheu
The CQ bit was checked by sheu@chromium.org
6 years, 10 months ago (2014-02-26 00:22:31 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sheu@chromium.org/170843004/800001
6 years, 10 months ago (2014-02-26 00:35:46 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-26 00:35:57 UTC) #19
commit-bot: I haz the power
Failed to apply patch for content/public/renderer/video_encode_accelerator.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 10 months ago (2014-02-26 00:35:58 UTC) #20
sheu
The CQ bit was checked by sheu@chromium.org
6 years, 10 months ago (2014-02-26 00:38:25 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sheu@chromium.org/170843004/820001
6 years, 10 months ago (2014-02-26 00:47:10 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-26 05:11:51 UTC) #23
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) app_list_unittests, ash_unittests, aura_unittests, compositor_unittests, content_browsertests, content_unittests, ...
6 years, 10 months ago (2014-02-26 05:11:52 UTC) #24
sheu
The CQ bit was checked by sheu@chromium.org
6 years, 10 months ago (2014-02-26 22:12:09 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sheu@chromium.org/170843004/840001
6 years, 10 months ago (2014-02-26 22:13:10 UTC) #26
commit-bot: I haz the power
6 years, 10 months ago (2014-02-27 05:58:53 UTC) #27
Message was sent while issue was closed.
Change committed as 253728

Powered by Google App Engine
This is Rietveld 408576698