Closed Bug 1605687 Opened 5 years ago Closed 5 years ago

nsFilterInstance.cpp: Value stored to 'filterIsNoop' is never read

Categories

(Core :: SVG, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla74
Tracking Status
firefox74 --- fixed

People

(Reporter: Sylvestre, Assigned: nical)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

According to:
http://sylvestre.ledru.info/reports/fx-scan-build/report-nsFilterInstance.cpp-BuildWebRenderFilters-86-1.html#EndPath

 filterIsNoop = true;

is useless because of the continue;

Maybe this line should be removed or it shows an issue with the code.

Nical, wdyt?

Flags: needinfo?(nical.bugzilla)

I think that we should not continue there and instead skip pushing the filter so that we benefit from the no-op cleanup at the end of the loop and avoid unnecessary color-space conversions in some cases. I'll fix that after bug 1606742 lands to avoid bitrotting Connor's patch.

Assignee: nobody → nical.bugzilla
Flags: needinfo?(nical.bugzilla)

The noop path lets us detect some unnecessary color space conversion passes.

The priority flag is not set for this bug.
:heycam, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(cam)
Flags: needinfo?(cam)
Priority: -- → P3
Pushed by nsilva@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c8af363b4a12 Don't skip the filter noop path when running into invalid color matrices. r=cbrewster
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla74
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: