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

Issue 1330563004: Avoid Copying damage rect when using Overlays (Closed)

Created:
5 years, 3 months ago by kalyank
Modified:
5 years, 1 month ago
CC:
chromium-reviews, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org, danakj+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid Copying damage rect when using Overlays When using Overlays, the damage rect can be completely covered by the layer being composited by Overlay. We still copy damage rect on to the current surface(Primary frame buffer) in BufferQueue. This should be un-necessary. BUG=370522, 548452 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/2904998edff0cfcaab43eeb3b1db013d6169bd17 Cr-Commit-Position: refs/heads/master@{#356352} Committed: https://crrev.com/5ee13b006abdf74d0f6b3fbdde2d936c00ad97e7 Cr-Commit-Position: refs/heads/master@{#356570} Committed: https://crrev.com/050e8dff0fd427ab33d8adb9e9b1d12cd2682067 Cr-Commit-Position: refs/heads/master@{#358434}

Patch Set 1 #

Patch Set 2 : Cleanup check #

Patch Set 3 : Subtract Overlays rect from Damage #

Patch Set 4 : Fix scissor rect #

Patch Set 5 : Remove unintended changes #

Patch Set 6 : Update ImageSurface #

Total comments: 4

Patch Set 7 : Dont subtract rect of any Quads which need blending #

Patch Set 8 : Missing changes #

Patch Set 9 : Missing changes #

Patch Set 10 : Remove static #

Patch Set 11 : Use Enclosed Rect #

Patch Set 12 : Fix tests #

Patch Set 13 : Initialize member variable #

Patch Set 14 : Pass DamageRect to stratergy #

Patch Set 15 : Remove blending checks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+220 lines, -68 lines) Patch
M cc/output/direct_renderer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M cc/output/gl_renderer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +5 lines, -4 lines 0 comments Download
M cc/output/overlay_processor.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +7 lines, -3 lines 0 comments Download
M cc/output/overlay_processor.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -2 lines 0 comments Download
M cc/output/overlay_strategy_all_or_nothing.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M cc/output/overlay_strategy_all_or_nothing.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M cc/output/overlay_strategy_sandwich.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M cc/output/overlay_strategy_sandwich.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M cc/output/overlay_strategy_single_on_top.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -2 lines 0 comments Download
M cc/output/overlay_strategy_single_on_top.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +9 lines, -4 lines 0 comments Download
M cc/output/overlay_strategy_underlay.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M cc/output/overlay_strategy_underlay.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M cc/output/overlay_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 44 chunks +176 lines, -46 lines 0 comments Download

Messages

Total messages: 55 (11 generated)
kalyank
Looking for some early feedback, if this approach is correct. With these changes, I see ...
5 years, 3 months ago (2015-09-03 08:00:53 UTC) #2
alexst (slow to review)
On 2015/09/03 08:00:53, kalyank wrote: > Looking for some early feedback, if this approach is ...
5 years, 3 months ago (2015-09-03 14:09:28 UTC) #4
kalyank
On 2015/09/03 14:09:28, alexst wrote: > On 2015/09/03 08:00:53, kalyank wrote: > > Looking for ...
5 years, 3 months ago (2015-09-03 17:34:31 UTC) #5
alexst (slow to review)
On 2015/09/03 17:34:31, kalyank wrote: > On 2015/09/03 14:09:28, alexst wrote: > > On 2015/09/03 ...
5 years, 3 months ago (2015-09-03 18:35:47 UTC) #6
kalyank
On 2015/09/03 18:35:47, alexst wrote: > On 2015/09/03 17:34:31, kalyank wrote: > > On 2015/09/03 ...
5 years, 3 months ago (2015-09-03 18:49:11 UTC) #7
kalyank
@ccameron, I see that in ImageTransportSurfaceOverlayMac, we actually remove Overlay rect from Damage rect. We ...
5 years, 2 months ago (2015-10-07 04:35:46 UTC) #9
kalyank
On 2015/10/07 04:35:46, kalyank wrote: > @ccameron, I see that in ImageTransportSurfaceOverlayMac, we actually > ...
5 years, 2 months ago (2015-10-07 21:45:27 UTC) #10
ccameron
This lgtm
5 years, 2 months ago (2015-10-07 21:53:32 UTC) #11
kalyank
On 2015/10/07 21:53:32, ccameron wrote: > This lgtm @alexst, @piman ping
5 years, 2 months ago (2015-10-07 22:04:23 UTC) #12
piman
https://codereview.chromium.org/1330563004/diff/100001/cc/output/direct_renderer.cc File cc/output/direct_renderer.cc (right): https://codereview.chromium.org/1330563004/diff/100001/cc/output/direct_renderer.cc#newcode248 cc/output/direct_renderer.cc:248: frame.root_damage_rect.Subtract(ToNearestRect(overlay.display_rect)); That's only true if the overlay is opaque. ...
5 years, 2 months ago (2015-10-08 22:51:31 UTC) #13
kalyank
https://codereview.chromium.org/1330563004/diff/100001/cc/output/direct_renderer.cc File cc/output/direct_renderer.cc (right): https://codereview.chromium.org/1330563004/diff/100001/cc/output/direct_renderer.cc#newcode248 cc/output/direct_renderer.cc:248: frame.root_damage_rect.Subtract(ToNearestRect(overlay.display_rect)); On 2015/10/08 22:51:31, piman (slow to review) wrote: ...
5 years, 2 months ago (2015-10-12 22:58:46 UTC) #14
kalyank
@piman, @danakj ping
5 years, 2 months ago (2015-10-19 17:14:22 UTC) #15
piman
https://codereview.chromium.org/1330563004/diff/100001/cc/output/direct_renderer.cc File cc/output/direct_renderer.cc (right): https://codereview.chromium.org/1330563004/diff/100001/cc/output/direct_renderer.cc#newcode248 cc/output/direct_renderer.cc:248: frame.root_damage_rect.Subtract(ToNearestRect(overlay.display_rect)); On 2015/10/12 22:58:45, kalyank wrote: > On 2015/10/08 ...
5 years, 2 months ago (2015-10-20 01:49:19 UTC) #16
kalyank
On 2015/10/20 01:49:19, piman (slow to review) wrote: > https://codereview.chromium.org/1330563004/diff/100001/cc/output/direct_renderer.cc > File cc/output/direct_renderer.cc (right): > ...
5 years, 2 months ago (2015-10-20 09:55:48 UTC) #17
kalyank
@piman ping
5 years, 2 months ago (2015-10-23 17:50:49 UTC) #18
piman
lgtm
5 years, 2 months ago (2015-10-23 17:59:43 UTC) #19
kalyank
On 2015/10/23 17:59:43, piman (slow to review) wrote: > lgtm @ccameron can you PTAL as ...
5 years, 2 months ago (2015-10-23 18:03:50 UTC) #20
kalyank
On 2015/10/23 18:03:50, kalyank wrote: > On 2015/10/23 17:59:43, piman (slow to review) wrote: > ...
5 years, 1 month ago (2015-10-27 16:11:41 UTC) #21
ccameron
On 2015/10/27 16:11:41, kalyank wrote: > On 2015/10/23 18:03:50, kalyank wrote: > > On 2015/10/23 ...
5 years, 1 month ago (2015-10-27 16:15:20 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1330563004/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1330563004/220001
5 years, 1 month ago (2015-10-27 17:17:37 UTC) #24
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years, 1 month ago (2015-10-27 18:36:09 UTC) #25
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/2904998edff0cfcaab43eeb3b1db013d6169bd17 Cr-Commit-Position: refs/heads/master@{#356352}
5 years, 1 month ago (2015-10-27 18:37:16 UTC) #26
oshima
A revert of this CL (patchset #12 id:220001) has been created in https://codereview.chromium.org/1414923006/ by oshima@chromium.org. ...
5 years, 1 month ago (2015-10-27 23:12:41 UTC) #27
kalyank
On 2015/10/27 23:12:41, oshima wrote: > A revert of this CL (patchset #12 id:220001) has ...
5 years, 1 month ago (2015-10-28 16:36:15 UTC) #30
piman
lgtm
5 years, 1 month ago (2015-10-28 16:55:31 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1330563004/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1330563004/240001
5 years, 1 month ago (2015-10-28 17:03:09 UTC) #34
commit-bot: I haz the power
Committed patchset #13 (id:240001)
5 years, 1 month ago (2015-10-28 17:07:23 UTC) #35
commit-bot: I haz the power
Patchset 13 (id:??) landed as https://crrev.com/5ee13b006abdf74d0f6b3fbdde2d936c00ad97e7 Cr-Commit-Position: refs/heads/master@{#356570}
5 years, 1 month ago (2015-10-28 17:09:21 UTC) #36
ccameron
On 2015/10/28 17:09:21, commit-bot: I haz the power wrote: > Patchset 13 (id:??) landed as ...
5 years, 1 month ago (2015-10-30 23:26:40 UTC) #37
ccameron
A revert of this CL (patchset #13 id:240001) has been created in https://codereview.chromium.org/1408953005/ by ccameron@chromium.org. ...
5 years, 1 month ago (2015-10-30 23:30:28 UTC) #38
kalyank
On 2015/10/30 23:30:28, ccameron wrote: > A revert of this CL (patchset #13 id:240001) has ...
5 years, 1 month ago (2015-11-02 16:55:23 UTC) #40
piman
lgtm
5 years, 1 month ago (2015-11-03 03:42:43 UTC) #41
kalyank
On 2015/11/03 03:42:43, piman (slow to review) wrote: > lgtm @ccameron ping
5 years, 1 month ago (2015-11-04 18:11:21 UTC) #42
ccameron
On 2015/11/04 18:11:21, kalyank wrote: > On 2015/11/03 03:42:43, piman (slow to review) wrote: > ...
5 years, 1 month ago (2015-11-04 19:33:11 UTC) #43
kalyank
On 2015/11/04 19:33:11, ccameron wrote: > On 2015/11/04 18:11:21, kalyank wrote: > > On 2015/11/03 ...
5 years, 1 month ago (2015-11-04 21:03:33 UTC) #44
piman
On Wed, Nov 4, 2015 at 11:33 AM, <ccameron@chromium.org> wrote: > On 2015/11/04 18:11:21, kalyank ...
5 years, 1 month ago (2015-11-04 23:00:48 UTC) #45
kalyank
On 2015/11/04 23:00:48, piman (slow to review) wrote: > On Wed, Nov 4, 2015 at ...
5 years, 1 month ago (2015-11-05 20:33:00 UTC) #46
kalyank
Ok to commit this ?
5 years, 1 month ago (2015-11-06 16:57:49 UTC) #47
ccameron
On 2015/11/06 16:57:49, kalyank wrote: > Ok to commit this ? Yes, OK by me
5 years, 1 month ago (2015-11-06 16:59:07 UTC) #48
ccameron
On 2015/11/04 23:00:48, piman (slow to review) wrote: > On Wed, Nov 4, 2015 at ...
5 years, 1 month ago (2015-11-06 19:06:05 UTC) #49
piman
On Fri, Nov 6, 2015 at 11:06 AM, <ccameron@chromium.org> wrote: > On 2015/11/04 23:00:48, piman ...
5 years, 1 month ago (2015-11-06 19:28:21 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1330563004/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1330563004/280001
5 years, 1 month ago (2015-11-06 22:44:27 UTC) #53
commit-bot: I haz the power
Committed patchset #15 (id:280001)
5 years, 1 month ago (2015-11-06 22:51:42 UTC) #54
commit-bot: I haz the power
5 years, 1 month ago (2015-11-06 22:52:38 UTC) #55
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/050e8dff0fd427ab33d8adb9e9b1d12cd2682067
Cr-Commit-Position: refs/heads/master@{#358434}

Powered by Google App Engine
This is Rietveld 408576698