Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync changes from mozilla-central #3735

Merged
merged 11 commits into from Aug 15, 2019
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Bug 1178765 - Part 5: Add optimization to render task depth assignmen…

…t r=gw,nical

Fixes an issue when backdrop-filter is used many time on a page where we would
spend a large amount of time reevaluating render tasks when assigning task depths.

Differential Revision: https://phabricator.services.mozilla.com/D41252

[wrupdater] From https://hg.mozilla.org/mozilla-central/rev/0c820a515e16953b3945ac670dac13099a568f6a
  • Loading branch information
cbrewster authored and moz-gfx committed Aug 14, 2019
commit ba96f6e722ca1e3e51ac82b8678aa9d719e55148
@@ -215,9 +215,13 @@ impl RenderTaskGraph {
) {
*max_depth = std::cmp::max(*max_depth, task_depth);

{
let task_max_depth = &mut task_max_depths[task_id.index as usize];
*task_max_depth = std::cmp::max(*task_max_depth, task_depth);
let task_max_depth = &mut task_max_depths[task_id.index as usize];
if task_depth > *task_max_depth {
*task_max_depth = task_depth;
} else {
// If this task has already been processed at a larger depth,
// there is no need to process it again.
return;
}

let task = &tasks[task_id.index as usize];
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.