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

Issue 835653005: gpu: media: RenderingHelper: wait for the display & window to be ready (Closed)

Created:
5 years, 11 months ago by llandwerlin-old
Modified:
5 years, 10 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

gpu: media: RenderingHelper: wait for the display & window to be ready With the display configuration now asynchronous, we can't immediately read the display size. We need to wait until the hardware is probed. Also the VSyncProvider cannot trigger the given callback until the PlatformWindow is properly setup with the display. We need to wait for it the actually be resized. BUG=447798 TEST=run video_decode_accelerator_unittest on freon Committed: https://crrev.com/7710e0b3a96c2d49cfe1146e3e4ba8c9e2405678 Cr-Commit-Position: refs/heads/master@{#313473}

Patch Set 1 #

Total comments: 14

Patch Set 2 : Update after Owen's and Pawel's comments #

Total comments: 6

Patch Set 3 : Update after dnicoara's review #

Total comments: 9

Patch Set 4 : Move platform window creation off the rendering thread #

Total comments: 5

Patch Set 5 : Initialize GPU process code in the right thread #

Patch Set 6 : Use RunUntilIdle to wait for window resize #

Total comments: 6

Patch Set 7 : Update after Owen's comments #

Total comments: 2

Patch Set 8 : Pawel's nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -96 lines) Patch
M content/common/gpu/media/rendering_helper.h View 1 2 3 4 1 chunk +15 lines, -3 lines 0 comments Download
M content/common/gpu/media/rendering_helper.cc View 1 2 3 4 5 6 8 chunks +95 lines, -44 lines 0 comments Download
M content/common/gpu/media/video_decode_accelerator_unittest.cc View 1 2 3 4 5 6 7 10 chunks +80 lines, -49 lines 0 comments Download

Messages

Total messages: 40 (4 generated)
llandwerlin-old
Owen, Pawel, this is making the RenderingHelper wait for the display to come up with ...
5 years, 11 months ago (2015-01-20 14:13:43 UTC) #2
Owen Lin
On 2015/01/20 14:13:43, llandwerlin wrote: > Owen, Pawel, this is making the RenderingHelper wait for ...
5 years, 11 months ago (2015-01-21 08:09:51 UTC) #3
Owen Lin
https://codereview.chromium.org/835653005/diff/1/content/common/gpu/media/rendering_helper.cc File content/common/gpu/media/rendering_helper.cc (right): https://codereview.chromium.org/835653005/diff/1/content/common/gpu/media/rendering_helper.cc#newcode87 content/common/gpu/media/rendering_helper.cc:87: ui::MultipleDisplayState failed_new_state) override {} Crash the program here ? ...
5 years, 11 months ago (2015-01-21 08:10:03 UTC) #4
Pawel Osciak
https://codereview.chromium.org/835653005/diff/1/content/common/gpu/media/rendering_helper.cc File content/common/gpu/media/rendering_helper.cc (right): https://codereview.chromium.org/835653005/diff/1/content/common/gpu/media/rendering_helper.cc#newcode104 content/common/gpu/media/rendering_helper.cc:104: void OnBoundsChanged(const gfx::Rect& new_bounds) override { loop_->Quit(); } Does ...
5 years, 11 months ago (2015-01-21 08:13:35 UTC) #5
llandwerlin-old
On 2015/01/21 08:09:51, Owen Lin wrote: > On 2015/01/20 14:13:43, llandwerlin wrote: > > Owen, ...
5 years, 11 months ago (2015-01-21 08:21:36 UTC) #6
llandwerlin-old
On 2015/01/21 08:21:36, llandwerlin wrote: > On 2015/01/21 08:09:51, Owen Lin wrote: > > On ...
5 years, 11 months ago (2015-01-21 08:30:04 UTC) #7
llandwerlin-old
https://codereview.chromium.org/835653005/diff/1/content/common/gpu/media/rendering_helper.cc File content/common/gpu/media/rendering_helper.cc (right): https://codereview.chromium.org/835653005/diff/1/content/common/gpu/media/rendering_helper.cc#newcode87 content/common/gpu/media/rendering_helper.cc:87: ui::MultipleDisplayState failed_new_state) override {} On 2015/01/21 08:10:03, Owen Lin ...
5 years, 11 months ago (2015-01-21 08:44:19 UTC) #8
dnicoara
I tested this on a Release and Debug build and everything worked fine. I'm still ...
5 years, 11 months ago (2015-01-21 16:23:57 UTC) #10
llandwerlin-old
https://codereview.chromium.org/835653005/diff/20001/content/common/gpu/media/rendering_helper.cc File content/common/gpu/media/rendering_helper.cc (right): https://codereview.chromium.org/835653005/diff/20001/content/common/gpu/media/rendering_helper.cc#newcode279 content/common/gpu/media/rendering_helper.cc:279: display_configurator_->AddObserver(&display_observer); On 2015/01/21 16:23:57, dnicoara wrote: > You can ...
5 years, 11 months ago (2015-01-21 18:45:51 UTC) #11
dnicoara
https://codereview.chromium.org/835653005/diff/40001/content/common/gpu/media/rendering_helper.cc File content/common/gpu/media/rendering_helper.cc (right): https://codereview.chromium.org/835653005/diff/40001/content/common/gpu/media/rendering_helper.cc#newcode233 content/common/gpu/media/rendering_helper.cc:233: #elif defined(USE_OZONE) Spoke with spang@ and now I understand ...
5 years, 11 months ago (2015-01-21 19:21:36 UTC) #12
Owen Lin
https://codereview.chromium.org/835653005/diff/40001/content/common/gpu/media/rendering_helper.cc File content/common/gpu/media/rendering_helper.cc (right): https://codereview.chromium.org/835653005/diff/40001/content/common/gpu/media/rendering_helper.cc#newcode233 content/common/gpu/media/rendering_helper.cc:233: #elif defined(USE_OZONE) On 2015/01/21 19:21:35, dnicoara wrote: > Spoke ...
5 years, 11 months ago (2015-01-22 03:46:45 UTC) #13
llandwerlin-old
https://codereview.chromium.org/835653005/diff/40001/content/common/gpu/media/rendering_helper.cc File content/common/gpu/media/rendering_helper.cc (right): https://codereview.chromium.org/835653005/diff/40001/content/common/gpu/media/rendering_helper.cc#newcode233 content/common/gpu/media/rendering_helper.cc:233: #elif defined(USE_OZONE) On 2015/01/22 03:46:44, Owen Lin wrote: > ...
5 years, 11 months ago (2015-01-22 11:03:19 UTC) #14
llandwerlin-old
PTAL. This change affects the Windows platform too, if someone could trigger the trybots there, ...
5 years, 11 months ago (2015-01-22 12:47:50 UTC) #15
dnicoara
https://codereview.chromium.org/835653005/diff/60001/content/common/gpu/media/rendering_helper.cc File content/common/gpu/media/rendering_helper.cc (right): https://codereview.chromium.org/835653005/diff/60001/content/common/gpu/media/rendering_helper.cc#newcode271 content/common/gpu/media/rendering_helper.cc:271: wait_window_resize.Run(); I'm not fine with adding more complexity to ...
5 years, 11 months ago (2015-01-22 19:23:17 UTC) #16
Owen Lin
https://codereview.chromium.org/835653005/diff/20001/content/common/gpu/media/rendering_helper.cc File content/common/gpu/media/rendering_helper.cc (right): https://codereview.chromium.org/835653005/diff/20001/content/common/gpu/media/rendering_helper.cc#newcode281 content/common/gpu/media/rendering_helper.cc:281: display_configurator_->SetDisplayMode(ui::MULTIPLE_DISPLAY_STATE_SINGLE); Why this line is removed ? https://codereview.chromium.org/835653005/diff/40001/content/common/gpu/media/rendering_helper.cc File ...
5 years, 11 months ago (2015-01-23 08:57:38 UTC) #18
llandwerlin-old
PTAL. I moved all the Gpu initialization code into the rendering thread. I now have ...
5 years, 11 months ago (2015-01-23 15:08:35 UTC) #19
dnicoara
https://codereview.chromium.org/835653005/diff/20001/content/common/gpu/media/rendering_helper.cc File content/common/gpu/media/rendering_helper.cc (right): https://codereview.chromium.org/835653005/diff/20001/content/common/gpu/media/rendering_helper.cc#newcode281 content/common/gpu/media/rendering_helper.cc:281: display_configurator_->SetDisplayMode(ui::MULTIPLE_DISPLAY_STATE_SINGLE); On 2015/01/23 08:57:38, Owen Lin wrote: > Why ...
5 years, 11 months ago (2015-01-23 15:10:13 UTC) #20
llandwerlin-old
dnicoara@ : is it normal that the tests don't appear to be run on these ...
5 years, 11 months ago (2015-01-23 15:55:06 UTC) #21
dnicoara
On 2015/01/23 15:55:06, llandwerlin wrote: > dnicoara@ : is it normal that the tests don't ...
5 years, 11 months ago (2015-01-23 15:58:25 UTC) #22
llandwerlin-old
On 2015/01/23 15:58:25, dnicoara wrote: > On 2015/01/23 15:55:06, llandwerlin wrote: > > dnicoara@ : ...
5 years, 11 months ago (2015-01-23 16:03:50 UTC) #23
dnicoara
On 2015/01/23 15:08:35, llandwerlin wrote: > PTAL. > > I moved all the Gpu initialization ...
5 years, 11 months ago (2015-01-23 16:25:35 UTC) #24
llandwerlin-old
On 2015/01/23 16:25:35, dnicoara wrote: > On 2015/01/23 15:08:35, llandwerlin wrote: > > PTAL. > ...
5 years, 11 months ago (2015-01-23 16:42:02 UTC) #25
dnicoara
On 2015/01/23 16:42:02, llandwerlin wrote: > On 2015/01/23 16:25:35, dnicoara wrote: > > On 2015/01/23 ...
5 years, 11 months ago (2015-01-23 17:02:15 UTC) #26
dnicoara
On 2015/01/23 17:02:15, dnicoara wrote: > On 2015/01/23 16:42:02, llandwerlin wrote: > > On 2015/01/23 ...
5 years, 11 months ago (2015-01-23 17:07:08 UTC) #27
llandwerlin-old
PTAL.
5 years, 11 months ago (2015-01-23 17:43:15 UTC) #28
dnicoara
On 2015/01/23 17:43:15, llandwerlin wrote: > PTAL. lgtm on the Ozone side nit: You can ...
5 years, 11 months ago (2015-01-23 17:49:11 UTC) #29
llandwerlin-old
On 2015/01/23 17:49:11, dnicoara wrote: > On 2015/01/23 17:43:15, llandwerlin wrote: > > PTAL. > ...
5 years, 11 months ago (2015-01-23 17:51:06 UTC) #30
dnicoara
On 2015/01/23 17:51:06, llandwerlin wrote: > On 2015/01/23 17:49:11, dnicoara wrote: > > On 2015/01/23 ...
5 years, 11 months ago (2015-01-23 17:54:44 UTC) #31
Owen Lin
https://codereview.chromium.org/835653005/diff/60001/content/common/gpu/media/rendering_helper.cc File content/common/gpu/media/rendering_helper.cc (right): https://codereview.chromium.org/835653005/diff/60001/content/common/gpu/media/rendering_helper.cc#newcode271 content/common/gpu/media/rendering_helper.cc:271: wait_window_resize.Run(); On 2015/01/23 15:10:13, dnicoara wrote: > On 2015/01/23 ...
5 years, 11 months ago (2015-01-26 07:25:29 UTC) #32
llandwerlin-old
https://codereview.chromium.org/835653005/diff/100001/content/common/gpu/media/rendering_helper.cc File content/common/gpu/media/rendering_helper.cc (right): https://codereview.chromium.org/835653005/diff/100001/content/common/gpu/media/rendering_helper.cc#newcode259 content/common/gpu/media/rendering_helper.cc:259: base::RunLoop wait_display_single; On 2015/01/26 07:25:29, Owen Lin wrote: > ...
5 years, 11 months ago (2015-01-26 11:35:48 UTC) #33
Owen Lin
lgtm. Hi Pawel, please do a owner's review of this CL. Thanks.
5 years, 11 months ago (2015-01-27 05:49:10 UTC) #34
Pawel Osciak
lgtm % nit Thank you for great explanations in comments! https://codereview.chromium.org/835653005/diff/120001/content/common/gpu/media/video_decode_accelerator_unittest.cc File content/common/gpu/media/video_decode_accelerator_unittest.cc (right): https://codereview.chromium.org/835653005/diff/120001/content/common/gpu/media/video_decode_accelerator_unittest.cc#newcode221 ...
5 years, 10 months ago (2015-01-28 07:41:47 UTC) #35
llandwerlin-old
https://codereview.chromium.org/835653005/diff/120001/content/common/gpu/media/video_decode_accelerator_unittest.cc File content/common/gpu/media/video_decode_accelerator_unittest.cc (right): https://codereview.chromium.org/835653005/diff/120001/content/common/gpu/media/video_decode_accelerator_unittest.cc#newcode221 content/common/gpu/media/video_decode_accelerator_unittest.cc:221: virtual void SetUp() { On 2015/01/28 07:41:47, Pawel Osciak ...
5 years, 10 months ago (2015-01-28 09:39:29 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/835653005/140001
5 years, 10 months ago (2015-01-28 09:41:50 UTC) #38
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 10 months ago (2015-01-28 10:18:27 UTC) #39
commit-bot: I haz the power
5 years, 10 months ago (2015-01-28 10:19:15 UTC) #40
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/7710e0b3a96c2d49cfe1146e3e4ba8c9e2405678
Cr-Commit-Position: refs/heads/master@{#313473}

Powered by Google App Engine
This is Rietveld 408576698