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

Issue 1670763002: cc: fix for huge filtered render surfaces. (Closed)

Created:
4 years, 10 months ago by Stephen White
Modified:
4 years, 10 months ago
Reviewers:
enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews, weiliangc
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: fix for huge filtered render surfaces. Now that we're properly taking crop rects (filter region) into account in accelerated reference filters, we may end up with a very large size for the resulting render target. This is inefficient, and may fail to allocate. The fix is to apply the layer's clip_rect to the computed rect. BUG=582357 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/5b2fc5f855c48e9037f07bb7589002fe156e4a3d Cr-Commit-Position: refs/heads/master@{#374216}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : early-return if we're clipped out #

Patch Set 4 : Fix viewport (no clip rect) case; add unit test #

Patch Set 5 : Use current draw rect for clipping, not current viewport rect. #

Patch Set 6 : Rebase to ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -21 lines) Patch
M cc/output/gl_renderer.cc View 1 2 3 4 4 chunks +35 lines, -21 lines 0 comments Download
A cc/test/data/filter_with_giant_crop_rect.png View Binary file 0 comments Download
M cc/trees/layer_tree_host_pixeltest_filters.cc View 1 2 3 1 chunk +63 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (12 generated)
Stephen White
enne@: PTAL. Thanks!
4 years, 10 months ago (2016-02-04 22:43:29 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1670763002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1670763002/40001
4 years, 10 months ago (2016-02-04 22:46:04 UTC) #6
enne (OOO)
I don't think you can always count on there being a clip_rect set on the ...
4 years, 10 months ago (2016-02-04 22:50:04 UTC) #7
Stephen White
On 2016/02/04 22:50:04, enne wrote: > I don't think you can always count on there ...
4 years, 10 months ago (2016-02-04 22:56:32 UTC) #8
enne (OOO)
On 2016/02/04 at 22:56:32, senorblanco wrote: > On 2016/02/04 22:50:04, enne wrote: > > I ...
4 years, 10 months ago (2016-02-04 23:09:35 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-04 23:47:12 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1670763002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1670763002/60001
4 years, 10 months ago (2016-02-05 16:49:29 UTC) #13
Stephen White
On 2016/02/04 23:09:35, enne wrote: > On 2016/02/04 at 22:56:32, senorblanco wrote: > > On ...
4 years, 10 months ago (2016-02-05 16:50:26 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-05 17:56:25 UTC) #16
enne (OOO)
Thanks for the followup. Sorry to ask for more work! lgtm
4 years, 10 months ago (2016-02-05 18:16:44 UTC) #17
Stephen White
On 2016/02/05 18:16:44, enne wrote: > Thanks for the followup. Sorry to ask for more ...
4 years, 10 months ago (2016-02-05 18:22:16 UTC) #18
Stephen White
Here's a repro case of the viewport failure, so I don't lose it. Will work ...
4 years, 10 months ago (2016-02-06 00:08:42 UTC) #19
Stephen White
Using the draw_rect instead of the viewport_rect seems to fix it. PTAL
4 years, 10 months ago (2016-02-08 19:13:59 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1670763002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1670763002/100001
4 years, 10 months ago (2016-02-08 19:15:15 UTC) #22
enne (OOO)
Forgive my skepticism, but can you convince me that that's the right rect? I would ...
4 years, 10 months ago (2016-02-08 19:34:12 UTC) #23
Stephen White
On 2016/02/08 19:34:12, enne wrote: > Forgive my skepticism, but can you convince me that ...
4 years, 10 months ago (2016-02-08 19:42:29 UTC) #24
Stephen White
On 2016/02/08 19:34:12, enne wrote: > Forgive my skepticism, but can you convince me that ...
4 years, 10 months ago (2016-02-08 19:49:08 UTC) #25
enne (OOO)
On 2016/02/08 at 19:49:08, senorblanco wrote: > On 2016/02/08 19:34:12, enne wrote: > > Forgive ...
4 years, 10 months ago (2016-02-08 19:54:08 UTC) #26
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-08 22:40:30 UTC) #28
Stephen White
On 2016/02/08 19:34:12, enne wrote: > Forgive my skepticism, but can you convince me that ...
4 years, 10 months ago (2016-02-08 22:43:12 UTC) #29
Stephen White
On 2016/02/08 19:34:12, enne wrote: > Forgive my skepticism, but can you convince me that ...
4 years, 10 months ago (2016-02-08 22:43:16 UTC) #30
Stephen White
For posterity, it looks like current_draw_rect_ gets set from comes from RenderPass::output_rect. For RenderSurfaces, this ...
4 years, 10 months ago (2016-02-08 22:49:01 UTC) #31
enne (OOO)
Thanks for investigating. Sorry that my memory for which rect is which here is not ...
4 years, 10 months ago (2016-02-08 22:54:30 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1670763002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1670763002/100001
4 years, 10 months ago (2016-02-08 23:20:28 UTC) #34
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 10 months ago (2016-02-08 23:31:25 UTC) #36
commit-bot: I haz the power
4 years, 10 months ago (2016-02-08 23:33:34 UTC) #38
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/5b2fc5f855c48e9037f07bb7589002fe156e4a3d
Cr-Commit-Position: refs/heads/master@{#374216}

Powered by Google App Engine
This is Rietveld 408576698