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

Issue 1334483002: Force buffer re-allocation when the backing display changes (Closed)

Created:
5 years, 3 months ago by dnicoara
Modified:
5 years, 3 months ago
CC:
chromium-reviews, kalyank, piman+watch_chromium.org, ozone-reviews_chromium.org, dbehr
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Force buffer re-allocation when the backing display changes When the user changes the primary display and both displays have the same resolution, the buffers are never re-allocated. It is then possible to encounter the following scenario: Surface 1 scans out on display A and surface 2 scans out on display B. When surface 1 moves to display B and surface 2 to display A there is no guarantee that either surface will force re-draws. If, say, surface 1 starts page flipping it is possible that it would start re-using the buffer currently shown on display A which could cause the GPU process to wait for display A to release the buffer. At this point the GPU main thread is blocked waiting without a possibility to progress since surface 2 cannot use the GPU to update. Eventually the watchdog kills the GPU process which causes the surfaces to be reallocated and progress to continue. BUG=511446 Committed: https://crrev.com/5bfd1d7ea19dae7cca921afa01cb0913d99514c0 Cr-Commit-Position: refs/heads/master@{#347933}

Patch Set 1 #

Total comments: 2

Patch Set 2 : add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -13 lines) Patch
M ui/ozone/platform/drm/gpu/drm_surface.cc View 1 1 chunk +8 lines, -3 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_surface_unittest.cc View 4 chunks +14 lines, -10 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_window.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_window.cc View 2 chunks +15 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 13 (5 generated)
dnicoara
PTAL
5 years, 3 months ago (2015-09-08 21:03:32 UTC) #2
alexst (slow to review)
lgtm https://codereview.chromium.org/1334483002/diff/1/ui/ozone/platform/drm/gpu/drm_surface.cc File ui/ozone/platform/drm/gpu/drm_surface.cc (right): https://codereview.chromium.org/1334483002/diff/1/ui/ozone/platform/drm/gpu/drm_surface.cc#newcode102 ui/ozone/platform/drm/gpu/drm_surface.cc:102: pending_pageflip_ = true; Please make a quick note ...
5 years, 3 months ago (2015-09-08 21:12:53 UTC) #3
dnicoara
https://codereview.chromium.org/1334483002/diff/1/ui/ozone/platform/drm/gpu/drm_surface.cc File ui/ozone/platform/drm/gpu/drm_surface.cc (right): https://codereview.chromium.org/1334483002/diff/1/ui/ozone/platform/drm/gpu/drm_surface.cc#newcode102 ui/ozone/platform/drm/gpu/drm_surface.cc:102: pending_pageflip_ = true; On 2015/09/08 21:12:53, alexst wrote: > ...
5 years, 3 months ago (2015-09-09 14:09:52 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1334483002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1334483002/20001
5 years, 3 months ago (2015-09-09 14:10:07 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-09 14:55:47 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1334483002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1334483002/20001
5 years, 3 months ago (2015-09-09 15:08:36 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 3 months ago (2015-09-09 15:15:07 UTC) #12
commit-bot: I haz the power
5 years, 3 months ago (2015-09-09 15:15:46 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/5bfd1d7ea19dae7cca921afa01cb0913d99514c0
Cr-Commit-Position: refs/heads/master@{#347933}

Powered by Google App Engine
This is Rietveld 408576698