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

Issue 568413002: Add VEA supported profiles to GPUInfo. (Closed)

Created:
6 years, 3 months ago by wuchengli
Modified:
6 years, 2 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add VEA supported profiles to GPUInfo. Originally we use a static GetSupportedProfiles for each VEA implementation to get a list of supported codec profiles. But different devices of the same platform can support different profiles. To return a correct list, they are dynamically detected in runtime and added to GPUInfo. BUG=350197 TEST=Run apprtc loopback and Hangout on peach pit. Run gpu_info_unittest. Committed: https://crrev.com/79808322a289e4eb20627be3637a08245c15ea3a Cr-Commit-Position: refs/heads/master@{#296147}

Patch Set 1 : #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : address piman's comments and fix cast_unittests compile error #

Patch Set 4 : address piman's comment -- create codecs_ lazily #

Total comments: 4

Patch Set 5 : rebase #

Patch Set 6 : rebase #

Patch Set 7 : use GPUInfo #

Total comments: 2

Patch Set 8 : try to fix gn bots #

Total comments: 7

Patch Set 9 : fix typo and update gpu_info_unittest #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -64 lines) Patch
M content/browser/devtools/devtools_system_info_handler.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M content/common/gpu/client/gpu_video_encode_accelerator_host.h View 1 chunk +1 line, -4 lines 0 comments Download
M content/common/gpu/client/gpu_video_encode_accelerator_host.cc View 1 2 3 4 5 6 2 chunks +8 lines, -6 lines 0 comments Download
M content/common/gpu/gpu_messages.h View 1 2 3 4 5 6 2 chunks +8 lines, -0 lines 0 comments Download
M content/common/gpu/media/android_video_encode_accelerator.h View 1 1 chunk +2 lines, -3 lines 0 comments Download
M content/common/gpu/media/android_video_encode_accelerator.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M content/common/gpu/media/gpu_video_encode_accelerator.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/media/gpu_video_encode_accelerator.cc View 1 2 2 chunks +13 lines, -23 lines 0 comments Download
M content/common/gpu/media/v4l2_video_encode_accelerator.h View 2 chunks +2 lines, -3 lines 0 comments Download
M content/common/gpu/media/v4l2_video_encode_accelerator.cc View 1 2 chunks +4 lines, -5 lines 0 comments Download
M content/common/gpu/media/vaapi_video_encode_accelerator.h View 1 2 chunks +2 lines, -3 lines 0 comments Download
M content/common/gpu/media/vaapi_video_encode_accelerator.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M content/gpu/gpu_main.cc View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M content/public/renderer/video_encode_accelerator.cc View 1 2 3 4 5 6 1 chunk +5 lines, -1 line 0 comments Download
M content/renderer/media/renderer_gpu_video_accelerator_factories.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/media/renderer_gpu_video_accelerator_factories.cc View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M content/renderer/media/rtc_video_encoder_factory.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -4 lines 0 comments Download
M gpu/config/DEPS View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 2 comments Download
M gpu/config/gpu_info.h View 1 2 3 4 5 6 3 chunks +9 lines, -0 lines 0 comments Download
M gpu/config/gpu_info.cc View 1 2 3 4 5 6 3 chunks +20 lines, -0 lines 0 comments Download
M gpu/config/gpu_info_collector.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/config/gpu_info_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M media/cast/test/fake_video_encode_accelerator.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M media/cast/test/fake_video_encode_accelerator.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M media/filters/gpu_video_accelerator_factories.h View 1 2 3 4 5 6 3 chunks +5 lines, -1 line 0 comments Download
M media/filters/mock_gpu_video_accelerator_factories.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M media/video/video_encode_accelerator.h View 1 2 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 41 (14 generated)
wuchengli
This is a draft. PTAL.
6 years, 3 months ago (2014-09-16 09:03:31 UTC) #3
wuchengli
PTAL. piman@ Owner review for content/ scherkus@ Owner review for media/ and content/renderer/media/ jln@ Owner ...
6 years, 3 months ago (2014-09-18 03:16:16 UTC) #8
kcwu
lgtm
6 years, 3 months ago (2014-09-18 05:18:35 UTC) #9
piman
A sync message, especially to the GPU main thread can be costly... https://codereview.chromium.org/568413002/diff/80001/content/common/gpu/gpu_messages.h File content/common/gpu/gpu_messages.h ...
6 years, 3 months ago (2014-09-18 18:11:51 UTC) #10
kcwu
https://codereview.chromium.org/568413002/diff/140001/content/public/renderer/video_encode_accelerator.cc File content/public/renderer/video_encode_accelerator.cc (right): https://codereview.chromium.org/568413002/diff/140001/content/public/renderer/video_encode_accelerator.cc#newcode51 content/public/renderer/video_encode_accelerator.cc:51: std::vector<media::VideoEncodeAccelerator::SupportedProfile> Since you cached the result to global variable, ...
6 years, 3 months ago (2014-09-19 11:15:55 UTC) #12
wuchengli
piman@ PTAL. https://codereview.chromium.org/568413002/diff/80001/content/common/gpu/gpu_messages.h File content/common/gpu/gpu_messages.h (right): https://codereview.chromium.org/568413002/diff/80001/content/common/gpu/gpu_messages.h#newcode582 content/common/gpu/gpu_messages.h:582: std::vector<media::VideoEncodeAccelerator::SupportedProfile> /* profiles */) On 2014/09/18 18:11:51, ...
6 years, 3 months ago (2014-09-19 14:27:25 UTC) #13
piman
On Fri, Sep 19, 2014 at 7:27 AM, <wuchengli@chromium.org> wrote: > piman@ PTAL. > > ...
6 years, 3 months ago (2014-09-19 18:06:56 UTC) #14
wuchengli
> > On 2014/09/18 18:11:51, piman (Very slow to review) wrote: > > > >> ...
6 years, 3 months ago (2014-09-19 22:35:57 UTC) #15
piman
On Fri, Sep 19, 2014 at 3:35 PM, <wuchengli@chromium.org> wrote: > > On 2014/09/18 18:11:51, ...
6 years, 3 months ago (2014-09-19 22:46:20 UTC) #16
wuchengli
PTAL. After using GPUInfo, the code is simpler! The only concern is this adds the ...
6 years, 3 months ago (2014-09-22 14:37:44 UTC) #20
kenrb
ipc lgtm https://codereview.chromium.org/568413002/diff/240001/content/renderer/media/rtc_video_encoder_factory.cc File content/renderer/media/rtc_video_encoder_factory.cc (right): https://codereview.chromium.org/568413002/diff/240001/content/renderer/media/rtc_video_encoder_factory.cc#newcode62 content/renderer/media/rtc_video_encoder_factory.cc:62: } // anonymouse namespace ?
6 years, 3 months ago (2014-09-22 15:25:11 UTC) #21
scherkus (not reviewing)
lgtm
6 years, 3 months ago (2014-09-22 17:50:44 UTC) #22
piman
gpu/config depending on media/video isn't a fundamental issue, but it may be causing trouble currently ...
6 years, 3 months ago (2014-09-22 19:32:02 UTC) #23
wuchengli
On 2014/09/22 19:32:02, piman (Very slow to review) wrote: > gpu/config depending on media/video isn't ...
6 years, 3 months ago (2014-09-22 22:02:44 UTC) #24
wuchengli
On 2014/09/22 22:02:44, wuchengli wrote: > On 2014/09/22 19:32:02, piman (Very slow to review) wrote: ...
6 years, 3 months ago (2014-09-22 22:14:14 UTC) #25
piman
On Mon, Sep 22, 2014 at 3:02 PM, <wuchengli@chromium.org> wrote: > On 2014/09/22 19:32:02, piman ...
6 years, 3 months ago (2014-09-22 22:15:18 UTC) #26
piman
+pfeldman for devtools stuff (see questions upthread)
6 years, 3 months ago (2014-09-22 22:16:00 UTC) #28
Pawel Osciak
Just some nits. Could you also please add this call to veatest and ASSERT that ...
6 years, 3 months ago (2014-09-23 00:08:49 UTC) #29
wuchengli
On 2014/09/23 00:08:49, Pawel Osciak wrote: > Just some nits. > Could you also please ...
6 years, 3 months ago (2014-09-23 03:37:05 UTC) #30
wuchengli
I'll file a bug for making gpu/config a component. https://codereview.chromium.org/568413002/diff/240001/content/renderer/media/rtc_video_encoder_factory.cc File content/renderer/media/rtc_video_encoder_factory.cc (right): https://codereview.chromium.org/568413002/diff/240001/content/renderer/media/rtc_video_encoder_factory.cc#newcode62 content/renderer/media/rtc_video_encoder_factory.cc:62: ...
6 years, 3 months ago (2014-09-23 03:37:25 UTC) #31
Pawel Osciak
On 2014/09/23 03:37:05, wuchengli wrote: > On 2014/09/23 00:08:49, Pawel Osciak wrote: > > Just ...
6 years, 3 months ago (2014-09-23 04:10:29 UTC) #32
Pawel Osciak
lgtm https://codereview.chromium.org/568413002/diff/260001/gpu/config/DEPS File gpu/config/DEPS (right): https://codereview.chromium.org/568413002/diff/260001/gpu/config/DEPS#newcode4 gpu/config/DEPS:4: "+media/video", # For VideoEncodeAccelerator::SupportedProfile. On 2014/09/23 03:37:25, wuchengli ...
6 years, 3 months ago (2014-09-23 04:13:19 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/568413002/280001
6 years, 3 months ago (2014-09-23 04:54:13 UTC) #35
commit-bot: I haz the power
Committed patchset #9 (id:280001) as d05bac4c954aa0c07ea55f8931efdbed062165bc
6 years, 3 months ago (2014-09-23 05:58:22 UTC) #36
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/79808322a289e4eb20627be3637a08245c15ea3a Cr-Commit-Position: refs/heads/master@{#296147}
6 years, 3 months ago (2014-09-23 05:58:54 UTC) #37
jamesr
https://codereview.chromium.org/568413002/diff/280001/gpu/config/DEPS File gpu/config/DEPS (right): https://codereview.chromium.org/568413002/diff/280001/gpu/config/DEPS#newcode4 gpu/config/DEPS:4: "+media/video", # For VideoEncodeAccelerator::SupportedProfile. this is really crappy - ...
6 years, 2 months ago (2014-10-06 18:11:17 UTC) #40
wuchengli
6 years, 2 months ago (2014-10-06 22:03:48 UTC) #41
Message was sent while issue was closed.
https://codereview.chromium.org/568413002/diff/280001/gpu/config/DEPS
File gpu/config/DEPS (right):

https://codereview.chromium.org/568413002/diff/280001/gpu/config/DEPS#newcode4
gpu/config/DEPS:4: "+media/video",  # For
VideoEncodeAccelerator::SupportedProfile.
On 2014/10/06 18:11:17, jamesr wrote:
> this is really crappy - it creates a cycle between the gpu/ and media/
> components and makes it harder to understand the dependency graph.  Could you
do
> this in a better way?
I just filed http://crbug.com/420801. The suggestion from piman was to make
gpu/config a component. Let me know if that's the right way on the bug. Thanks.

Powered by Google App Engine
This is Rietveld 408576698