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

Issue 2919533003: ozone/drm: Only reuse ScanoutBuffers with compatible modifiers (Closed)

Created:
3 years, 6 months ago by hoegsberg
Modified:
3 years, 6 months ago
CC:
chromium-reviews, kalyank, ozone-reviews_chromium.org, piman+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

ozone/drm: Only reuse ScanoutBuffers with compatible modifiers Now that we have modifiers, we need to make sure that not just the format, but also the format modifer is compatible with the HardwareDisplayController where we want to use the buffer. BUG=b/38217940 TEST=Plug in external monitor that supports same resolution as internal panel with mirror mode enabled Review-Url: https://codereview.chromium.org/2919533003 Cr-Commit-Position: refs/heads/master@{#479813} Committed: https://chromium.googlesource.com/chromium/src/+/9947afe90294ff5ad902e2cc02f8064506f7f0a4

Patch Set 1 #

Total comments: 4

Patch Set 2 : ozone/drm: Only reuse ScanoutBuffers with compatible modifiers #

Total comments: 4

Patch Set 3 : ozone/drm: Only reuse ScanoutBuffers with compatible modifiers #

Patch Set 4 : ozone/drm: Only reuse ScanoutBuffers with compatible modifiers #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -23 lines) Patch
M ui/ozone/platform/drm/gpu/drm_buffer.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_buffer.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M ui/ozone/platform/drm/gpu/gbm_buffer.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/ozone/platform/drm/gpu/gbm_buffer.cc View 3 chunks +2 lines, -7 lines 0 comments Download
M ui/ozone/platform/drm/gpu/gbm_buffer_base.h View 2 chunks +2 lines, -0 lines 0 comments Download
M ui/ozone/platform/drm/gpu/gbm_buffer_base.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M ui/ozone/platform/drm/gpu/mock_hardware_display_plane_manager.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M ui/ozone/platform/drm/gpu/mock_scanout_buffer.h View 1 2 3 chunks +7 lines, -1 line 0 comments Download
M ui/ozone/platform/drm/gpu/mock_scanout_buffer.cc View 1 2 2 chunks +22 lines, -4 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 +10 lines, -1 line 0 comments Download
M ui/ozone/platform/drm/gpu/scanout_buffer.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/ozone/platform/drm/gpu/screen_manager.cc View 1 1 chunk +17 lines, -4 lines 0 comments Download
M ui/ozone/platform/drm/gpu/screen_manager_unittest.cc View 1 2 4 chunks +35 lines, -4 lines 0 comments Download

Messages

Total messages: 23 (11 generated)
Daniele Castagna
LGTM, thanks! https://codereview.chromium.org/2919533003/diff/1/ui/ozone/platform/drm/gpu/screen_manager.cc File ui/ozone/platform/drm/gpu/screen_manager.cc (right): https://codereview.chromium.org/2919533003/diff/1/ui/ozone/platform/drm/gpu/screen_manager.cc#newcode366 ui/ozone/platform/drm/gpu/screen_manager.cc:366: if (modifiers.size() == 0) nit: !modifiers.size() https://codereview.chromium.org/2919533003/diff/1/ui/ozone/platform/drm/gpu/screen_manager.cc#newcode368 ...
3 years, 6 months ago (2017-06-03 19:53:06 UTC) #4
dnicoara
Could you add some ScreenManager unittests to cover modifier flags? https://codereview.chromium.org/2919533003/diff/1/ui/ozone/platform/drm/gpu/screen_manager.cc File ui/ozone/platform/drm/gpu/screen_manager.cc (right): https://codereview.chromium.org/2919533003/diff/1/ui/ozone/platform/drm/gpu/screen_manager.cc#newcode366 ...
3 years, 6 months ago (2017-06-05 15:54:58 UTC) #6
hoegsberg1
On 2017/06/05 15:54:58, dnicoara wrote: > Could you add some ScreenManager unittests to cover modifier ...
3 years, 6 months ago (2017-06-14 22:01:06 UTC) #7
dnicoara
lgtm with minor fixes. Thanks for the unittest! https://codereview.chromium.org/2919533003/diff/20001/ui/ozone/platform/drm/gpu/mock_scanout_buffer.cc File ui/ozone/platform/drm/gpu/mock_scanout_buffer.cc (right): https://codereview.chromium.org/2919533003/diff/20001/ui/ozone/platform/drm/gpu/mock_scanout_buffer.cc#newcode8 ui/ozone/platform/drm/gpu/mock_scanout_buffer.cc:8: namespace ...
3 years, 6 months ago (2017-06-15 14:24:43 UTC) #8
hoegsberg1
On 2017/06/15 14:24:43, dnicoara wrote: > lgtm with minor fixes. > > Thanks for the ...
3 years, 6 months ago (2017-06-15 16:57:35 UTC) #9
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/2919533003/40001
3 years, 6 months ago (2017-06-15 18:34:49 UTC) #12
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/407800)
3 years, 6 months ago (2017-06-15 19:15:59 UTC) #14
hoegsberg1
On 2017/06/15 at 19:15:59, commit-bot wrote: > Try jobs failed on following builders: > linux_chromium_chromeos_ozone_rel_ng ...
3 years, 6 months ago (2017-06-15 19:41:13 UTC) #15
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/2919533003/60001
3 years, 6 months ago (2017-06-15 19:41:56 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/9947afe90294ff5ad902e2cc02f8064506f7f0a4
3 years, 6 months ago (2017-06-15 20:30:29 UTC) #21
marcheu1
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/2948513003/ by marcheu@google.com. ...
3 years, 6 months ago (2017-06-19 23:40:43 UTC) #22
hoegsberg1
3 years, 6 months ago (2017-06-20 00:24:06 UTC) #23
Message was sent while issue was closed.
On 2017/06/19 at 23:40:43, marcheu wrote:
> A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/2948513003/ by marcheu@google.com.
> 
> The reason for reverting is: This breaks nyan (see crbug.com/734074) so let's
revert to hopefully have a green PFQ run today..

Fix here:

 https://chromium-review.googlesource.com/c/540817/?polygerrit=1

Powered by Google App Engine
This is Rietveld 408576698