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

Issue 2712463002: ozone: Reject overlays when a test buffer can't be allocated. (Closed)

Created:
3 years, 10 months ago by Daniele Castagna
Modified:
3 years, 10 months ago
Reviewers:
dnicoara, reveman
CC:
chromium-reviews, kalyank, ozone-reviews_chromium.org, piman+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ozone: Reject overlays when a test buffer can't be allocated. Creating a scanout buffer can fail. One example is if the size of the buffer is too big. In that case it won't be possible to add a framebuffer and GetBufferForPageFlipTest will return null. This CL makes sure that we handle that case, and we reject the overlay candidate when that happens. BUG=b/33247171 Review-Url: https://codereview.chromium.org/2712463002 Cr-Commit-Position: refs/heads/master@{#451907} Committed: https://chromium.googlesource.com/chromium/src/+/b3d8f58c9c4070637f727fa46eec5c9a367c8dcd

Patch Set 1 #

Total comments: 3

Patch Set 2 : Address dnicoara's comment. #

Patch Set 3 : Clean up unittest. Fix nullptr bug. #

Patch Set 4 : Remove DCHECK that one plane would always succeed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -5 lines) Patch
M ui/ozone/platform/drm/gpu/drm_overlay_validator.cc View 1 2 3 3 chunks +4 lines, -5 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_overlay_validator_unittest.cc View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M ui/ozone/platform/drm/gpu/mock_scanout_buffer_generator.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M ui/ozone/platform/drm/gpu/mock_scanout_buffer_generator.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 38 (21 generated)
Daniele Castagna
3 years, 10 months ago (2017-02-21 18:39:17 UTC) #4
dnicoara
https://codereview.chromium.org/2712463002/diff/1/ui/ozone/platform/drm/gpu/drm_overlay_validator_unittest.cc File ui/ozone/platform/drm/gpu/drm_overlay_validator_unittest.cc (right): https://codereview.chromium.org/2712463002/diff/1/ui/ozone/platform/drm/gpu/drm_overlay_validator_unittest.cc#newcode633 ui/ozone/platform/drm/gpu/drm_overlay_validator_unittest.cc:633: // If a buffer is too big, buffer allocation ...
3 years, 10 months ago (2017-02-21 19:03:18 UTC) #5
Daniele Castagna
https://codereview.chromium.org/2712463002/diff/1/ui/ozone/platform/drm/gpu/drm_overlay_validator_unittest.cc File ui/ozone/platform/drm/gpu/drm_overlay_validator_unittest.cc (right): https://codereview.chromium.org/2712463002/diff/1/ui/ozone/platform/drm/gpu/drm_overlay_validator_unittest.cc#newcode633 ui/ozone/platform/drm/gpu/drm_overlay_validator_unittest.cc:633: // If a buffer is too big, buffer allocation ...
3 years, 10 months ago (2017-02-21 19:12:22 UTC) #6
dnicoara
https://codereview.chromium.org/2712463002/diff/1/ui/ozone/platform/drm/gpu/drm_overlay_validator_unittest.cc File ui/ozone/platform/drm/gpu/drm_overlay_validator_unittest.cc (right): https://codereview.chromium.org/2712463002/diff/1/ui/ozone/platform/drm/gpu/drm_overlay_validator_unittest.cc#newcode633 ui/ozone/platform/drm/gpu/drm_overlay_validator_unittest.cc:633: // If a buffer is too big, buffer allocation ...
3 years, 10 months ago (2017-02-21 19:19:39 UTC) #7
Daniele Castagna
On 2017/02/21 at 19:19:39, dnicoara wrote: > https://codereview.chromium.org/2712463002/diff/1/ui/ozone/platform/drm/gpu/drm_overlay_validator_unittest.cc > File ui/ozone/platform/drm/gpu/drm_overlay_validator_unittest.cc (right): > > https://codereview.chromium.org/2712463002/diff/1/ui/ozone/platform/drm/gpu/drm_overlay_validator_unittest.cc#newcode633 ...
3 years, 10 months ago (2017-02-21 19:33:30 UTC) #8
Daniele Castagna
On 2017/02/21 at 19:33:30, Daniele Castagna wrote: > On 2017/02/21 at 19:19:39, dnicoara wrote: > ...
3 years, 10 months ago (2017-02-21 19:34:15 UTC) #9
dnicoara
On 2017/02/21 19:34:15, Daniele Castagna wrote: > On 2017/02/21 at 19:33:30, Daniele Castagna wrote: > ...
3 years, 10 months ago (2017-02-21 19:38:03 UTC) #10
Daniele Castagna
On 2017/02/21 at 19:38:03, dnicoara wrote: > On 2017/02/21 19:34:15, Daniele Castagna wrote: > > ...
3 years, 10 months ago (2017-02-21 19:45:45 UTC) #12
dnicoara
On 2017/02/21 19:45:45, Daniele Castagna wrote: > On 2017/02/21 at 19:38:03, dnicoara wrote: > > ...
3 years, 10 months ago (2017-02-21 19:50:17 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2712463002/40001
3 years, 10 months ago (2017-02-21 20:37:31 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_asan_rel_ng on ...
3 years, 10 months ago (2017-02-21 21:50:01 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2712463002/40001
3 years, 10 months ago (2017-02-21 21:52:34 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/326078)
3 years, 10 months ago (2017-02-21 23:26:03 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2712463002/60001
3 years, 10 months ago (2017-02-22 02:22:44 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
3 years, 10 months ago (2017-02-22 04:24:59 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2712463002/60001
3 years, 10 months ago (2017-02-22 05:15:26 UTC) #35
commit-bot: I haz the power
3 years, 10 months ago (2017-02-22 07:10:48 UTC) #38
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/b3d8f58c9c4070637f727fa46eec...

Powered by Google App Engine
This is Rietveld 408576698