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

Issue 1072193008: [1/4][Ozone-Drm] Process display hotplug events sequentially (Closed)

Created:
5 years, 8 months ago by dnicoara
Modified:
5 years, 7 months ago
Reviewers:
spang
CC:
chromium-reviews, kalyank, ozone-reviews_chromium.org, jcliang, Daniel Kurtz, oak-mtk_chromium.org, oak-img_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Ozone-Drm] Process display hotplug events sequentially If add,remove or add,add (scanning for devices) events are delivered fast enough, the remove/add event would be processed before the first add event. In the first case the state would be incorrect while in the second case it would cause the device to be opened multiple times (causing permission errors in one of the events). To avoid this, use a sequenced worker pool to properly order events. The device path is used to group events for the same device. This CL also keeps track of the active devices such that we can ignore duplicate events (possible due to device scanning) and reduce the number of display configurations performed. BUG=477792, 476728 Committed: https://crrev.com/e037bbf79d760921ed56cb0694b1defc598edadc Cr-Commit-Position: refs/heads/master@{#327321}

Patch Set 1 #

Patch Set 2 : Handle GPU crashes #

Patch Set 3 : Use WorkerPool for sequential scheduling #

Patch Set 4 : Simplified #

Total comments: 4

Patch Set 5 : Add task_pending_ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -45 lines) Patch
M ui/ozone/platform/drm/host/drm_native_display_delegate.h View 1 2 3 4 3 chunks +32 lines, -1 line 0 comments Download
M ui/ozone/platform/drm/host/drm_native_display_delegate.cc View 1 2 3 4 4 chunks +90 lines, -44 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
dnicoara
5 years, 8 months ago (2015-04-22 17:05:04 UTC) #2
dnicoara
Added a wrapper around WorkerPool to keep the sequential processing of events for the same ...
5 years, 8 months ago (2015-04-23 21:22:15 UTC) #3
spang
https://codereview.chromium.org/1072193008/diff/60001/ui/ozone/platform/drm/host/drm_native_display_delegate.cc File ui/ozone/platform/drm/host/drm_native_display_delegate.cc (right): https://codereview.chromium.org/1072193008/diff/60001/ui/ozone/platform/drm/host/drm_native_display_delegate.cc#newcode250 ui/ozone/platform/drm/host/drm_native_display_delegate.cc:250: while (!event_queue_.empty()) { I think it would be clearer ...
5 years, 8 months ago (2015-04-27 21:54:33 UTC) #4
dnicoara
https://codereview.chromium.org/1072193008/diff/60001/ui/ozone/platform/drm/host/drm_native_display_delegate.cc File ui/ozone/platform/drm/host/drm_native_display_delegate.cc (right): https://codereview.chromium.org/1072193008/diff/60001/ui/ozone/platform/drm/host/drm_native_display_delegate.cc#newcode250 ui/ozone/platform/drm/host/drm_native_display_delegate.cc:250: while (!event_queue_.empty()) { On 2015/04/27 21:54:33, spang wrote: > ...
5 years, 7 months ago (2015-04-28 14:53:04 UTC) #5
spang
lgtm
5 years, 7 months ago (2015-04-28 15:11:54 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1072193008/80001
5 years, 7 months ago (2015-04-28 16:26:47 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-04-28 17:20:46 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1072193008/80001
5 years, 7 months ago (2015-04-28 17:56:33 UTC) #12
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 7 months ago (2015-04-28 17:58:49 UTC) #13
commit-bot: I haz the power
5 years, 7 months ago (2015-04-28 17:59:45 UTC) #14
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/e037bbf79d760921ed56cb0694b1defc598edadc
Cr-Commit-Position: refs/heads/master@{#327321}

Powered by Google App Engine
This is Rietveld 408576698