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

Issue 1311013002: [Ozone] Fix SingleOnTop issue by checking if the quad is clipped. (Closed)

Created:
5 years, 4 months ago by william.xie1
Modified:
5 years, 3 months ago
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Ozone] Fix SingleOnTop issue by checking if the quad is clipped. Video quad may be clipped. We need to check that before use overlay BUG= CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/34621bb4e4c471a4fe79f5de117b3584b97aabdd Cr-Commit-Position: refs/heads/master@{#347892}

Patch Set 1 #

Patch Set 2 : Check if the quad is clipped before use overlay #

Total comments: 4

Patch Set 3 : #

Total comments: 3

Patch Set 4 : #

Total comments: 18

Patch Set 5 : #

Total comments: 7

Patch Set 6 : #

Patch Set 7 : Rebase and add unit test #

Total comments: 8

Patch Set 8 : Allow clipped #

Total comments: 1

Patch Set 9 : #

Total comments: 1

Patch Set 10 : #

Patch Set 11 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -2 lines) Patch
M cc/output/overlay_candidate.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -0 lines 0 comments Download
M cc/output/overlay_candidate.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M cc/output/overlay_strategy_common.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +13 lines, -0 lines 0 comments Download
M cc/output/overlay_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +21 lines, -0 lines 0 comments Download
M content/browser/compositor/browser_compositor_overlay_candidate_validator_ozone.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M ui/ozone/public/overlay_candidates_ozone.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M ui/ozone/public/overlay_candidates_ozone.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 47 (9 generated)
william.xie1
PTAL
5 years, 4 months ago (2015-08-24 01:28:51 UTC) #2
william.xie1
Hi Dana, Updated after the discussion, would you please take a look again?
5 years, 3 months ago (2015-08-27 01:58:01 UTC) #3
alexst (slow to review)
https://codereview.chromium.org/1311013002/diff/20001/cc/output/overlay_strategy_single_on_top.cc File cc/output/overlay_strategy_single_on_top.cc (right): https://codereview.chromium.org/1311013002/diff/20001/cc/output/overlay_strategy_single_on_top.cc#newcode33 cc/output/overlay_strategy_single_on_top.cc:33: if (draw_quad->shared_quad_state->visible_quad_layer_rect.size() != I don't think this is the ...
5 years, 3 months ago (2015-08-27 12:42:36 UTC) #4
william.xie1
On 2015/08/27 12:42:36, alexst wrote: > https://codereview.chromium.org/1311013002/diff/20001/cc/output/overlay_strategy_single_on_top.cc > File cc/output/overlay_strategy_single_on_top.cc (right): > > https://codereview.chromium.org/1311013002/diff/20001/cc/output/overlay_strategy_single_on_top.cc#newcode33 > ...
5 years, 3 months ago (2015-08-27 13:35:49 UTC) #5
alexst (slow to review)
On 2015/08/27 13:35:49, william.xie wrote: > On 2015/08/27 12:42:36, alexst wrote: > > > https://codereview.chromium.org/1311013002/diff/20001/cc/output/overlay_strategy_single_on_top.cc ...
5 years, 3 months ago (2015-08-27 13:42:03 UTC) #6
danakj
https://codereview.chromium.org/1311013002/diff/20001/cc/output/overlay_strategy_single_on_top.cc File cc/output/overlay_strategy_single_on_top.cc (right): https://codereview.chromium.org/1311013002/diff/20001/cc/output/overlay_strategy_single_on_top.cc#newcode34 cc/output/overlay_strategy_single_on_top.cc:34: draw_quad->shared_quad_state->quad_layer_bounds) Can you just use the draw_quad->shared_quad_state->is_clipped bool?
5 years, 3 months ago (2015-08-27 17:37:54 UTC) #7
william.xie1
https://codereview.chromium.org/1311013002/diff/20001/cc/output/overlay_strategy_single_on_top.cc File cc/output/overlay_strategy_single_on_top.cc (right): https://codereview.chromium.org/1311013002/diff/20001/cc/output/overlay_strategy_single_on_top.cc#newcode34 cc/output/overlay_strategy_single_on_top.cc:34: draw_quad->shared_quad_state->quad_layer_bounds) On 2015/08/27 17:37:54, danakj wrote: > Can you ...
5 years, 3 months ago (2015-08-28 00:00:46 UTC) #8
william.xie1
PTAL
5 years, 3 months ago (2015-08-28 12:40:26 UTC) #9
alexst (slow to review)
lgtm, thank you! Dana is an owner of these files, please wait for her to ...
5 years, 3 months ago (2015-08-28 13:00:26 UTC) #10
danakj
https://codereview.chromium.org/1311013002/diff/40001/cc/output/overlay_candidate.h File cc/output/overlay_candidate.h (right): https://codereview.chromium.org/1311013002/diff/40001/cc/output/overlay_candidate.h#newcode45 cc/output/overlay_candidate.h:45: // Original visible area of the quad period at ...
5 years, 3 months ago (2015-08-28 22:48:10 UTC) #11
danakj
https://codereview.chromium.org/1311013002/diff/20001/cc/output/overlay_strategy_single_on_top.cc File cc/output/overlay_strategy_single_on_top.cc (right): https://codereview.chromium.org/1311013002/diff/20001/cc/output/overlay_strategy_single_on_top.cc#newcode34 cc/output/overlay_strategy_single_on_top.cc:34: draw_quad->shared_quad_state->quad_layer_bounds) On 2015/08/28 00:00:46, william.xie wrote: > On 2015/08/27 ...
5 years, 3 months ago (2015-08-28 22:55:05 UTC) #12
william.xie1
https://codereview.chromium.org/1311013002/diff/40001/cc/output/overlay_candidate.h File cc/output/overlay_candidate.h (right): https://codereview.chromium.org/1311013002/diff/40001/cc/output/overlay_candidate.h#newcode45 cc/output/overlay_candidate.h:45: // Original visible area of the quad On 2015/08/28 ...
5 years, 3 months ago (2015-08-28 23:18:42 UTC) #13
william.xie1
PTAL
5 years, 3 months ago (2015-08-31 04:02:09 UTC) #14
danakj
https://codereview.chromium.org/1311013002/diff/60001/cc/output/overlay_candidate.h File cc/output/overlay_candidate.h (right): https://codereview.chromium.org/1311013002/diff/60001/cc/output/overlay_candidate.h#newcode44 cc/output/overlay_candidate.h:44: don't add whitespace between each one? the old fields ...
5 years, 3 months ago (2015-08-31 22:11:47 UTC) #15
danakj
https://codereview.chromium.org/1311013002/diff/60001/ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc File ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc (right): https://codereview.chromium.org/1311013002/diff/60001/ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc#newcode82 ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc:82: if (!(overlay->is_clipped && On 2015/08/31 22:11:47, danakj wrote: > ...
5 years, 3 months ago (2015-08-31 22:24:36 UTC) #16
william.xie1
Update per Dana's comments, Would you please take a look at again? https://codereview.chromium.org/1311013002/diff/60001/cc/output/overlay_candidate.h File cc/output/overlay_candidate.h ...
5 years, 3 months ago (2015-09-01 03:40:34 UTC) #17
danakj
https://codereview.chromium.org/1311013002/diff/100001/cc/output/overlay_candidate.h File cc/output/overlay_candidate.h (left): https://codereview.chromium.org/1311013002/diff/100001/cc/output/overlay_candidate.h#oldcode49 cc/output/overlay_candidate.h:49: leave this https://codereview.chromium.org/1311013002/diff/100001/cc/output/overlay_candidate.h File cc/output/overlay_candidate.h (right): https://codereview.chromium.org/1311013002/diff/100001/cc/output/overlay_candidate.h#newcode49 cc/output/overlay_candidate.h:49: bool ...
5 years, 3 months ago (2015-09-01 20:35:25 UTC) #19
william.xie1
Thanks Dana. Would you please take a look again? https://codereview.chromium.org/1311013002/diff/100001/cc/output/overlay_candidate.h File cc/output/overlay_candidate.h (left): https://codereview.chromium.org/1311013002/diff/100001/cc/output/overlay_candidate.h#oldcode49 cc/output/overlay_candidate.h:49: ...
5 years, 3 months ago (2015-09-01 21:50:12 UTC) #20
danakj
Thanks, looks good. Needs some tests.
5 years, 3 months ago (2015-09-01 21:54:10 UTC) #21
william.xie1
Hi Dana, Rebased and added unit test case, Would you please take a look again?
5 years, 3 months ago (2015-09-02 08:09:34 UTC) #22
william.xie1
PTAL
5 years, 3 months ago (2015-09-02 21:42:47 UTC) #23
danakj
https://codereview.chromium.org/1311013002/diff/140001/cc/output/overlay_unittest.cc File cc/output/overlay_unittest.cc (right): https://codereview.chromium.org/1311013002/diff/140001/cc/output/overlay_unittest.cc#newcode70 cc/output/overlay_unittest.cc:70: if (candidate.is_clipped && How come this is added here? ...
5 years, 3 months ago (2015-09-02 21:50:21 UTC) #24
william.xie1
PTAL https://codereview.chromium.org/1311013002/diff/140001/cc/output/overlay_unittest.cc File cc/output/overlay_unittest.cc (right): https://codereview.chromium.org/1311013002/diff/140001/cc/output/overlay_unittest.cc#newcode70 cc/output/overlay_unittest.cc:70: if (candidate.is_clipped && On 2015/09/02 21:50:21, danakj wrote: ...
5 years, 3 months ago (2015-09-02 22:04:49 UTC) #25
danakj
https://codereview.chromium.org/1311013002/diff/140001/cc/output/overlay_unittest.cc File cc/output/overlay_unittest.cc (right): https://codereview.chromium.org/1311013002/diff/140001/cc/output/overlay_unittest.cc#newcode70 cc/output/overlay_unittest.cc:70: if (candidate.is_clipped && On 2015/09/02 22:04:49, william.xie wrote: > ...
5 years, 3 months ago (2015-09-03 22:18:43 UTC) #26
danakj
https://codereview.chromium.org/1311013002/diff/140001/cc/output/overlay_unittest.cc File cc/output/overlay_unittest.cc (right): https://codereview.chromium.org/1311013002/diff/140001/cc/output/overlay_unittest.cc#newcode755 cc/output/overlay_unittest.cc:755: TEST_F(SingleOverlayOnTopTest, RejectClipped) { On 2015/09/02 22:04:49, william.xie wrote: > ...
5 years, 3 months ago (2015-09-03 22:21:17 UTC) #27
william.xie1
Hi Dana, I updated the unit test cae, PTAL, thank you!
5 years, 3 months ago (2015-09-04 14:37:47 UTC) #28
danakj
Thanks that looks better. Still wondering though, how do we test ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc ? https://codereview.chromium.org/1311013002/diff/180001/cc/output/overlay_unittest.cc File ...
5 years, 3 months ago (2015-09-04 18:00:39 UTC) #29
alexst (slow to review)
On 2015/09/04 18:00:39, danakj wrote: > Thanks that looks better. > > Still wondering though, ...
5 years, 3 months ago (2015-09-04 19:02:19 UTC) #30
william.xie1
Hi Dana, Updated test case, how about it? PTAL.
5 years, 3 months ago (2015-09-05 03:12:38 UTC) #31
danakj
That's not quite what I meant, but I guess it's fine. LGTM
5 years, 3 months ago (2015-09-08 18:42:57 UTC) #32
william.xie1
On 2015/09/08 18:42:57, danakj wrote: > That's not quite what I meant, but I guess ...
5 years, 3 months ago (2015-09-08 23:55:20 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1311013002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1311013002/200001
5 years, 3 months ago (2015-09-08 23:55:35 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/108925) mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 3 months ago (2015-09-08 23:57:12 UTC) #38
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1311013002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1311013002/220001
5 years, 3 months ago (2015-09-09 00:54:40 UTC) #40
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-09 08:56:41 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1311013002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1311013002/220001
5 years, 3 months ago (2015-09-09 09:23:40 UTC) #45
commit-bot: I haz the power
Committed patchset #11 (id:220001)
5 years, 3 months ago (2015-09-09 09:28:45 UTC) #46
commit-bot: I haz the power
5 years, 3 months ago (2015-09-09 09:29:33 UTC) #47
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/34621bb4e4c471a4fe79f5de117b3584b97aabdd
Cr-Commit-Position: refs/heads/master@{#347892}

Powered by Google App Engine
This is Rietveld 408576698