Closed Bug 1682146 Opened 5 years ago Closed 5 years ago

ClearCache bitflags are all identical

Categories

(Core :: Graphics: WebRender, defect, P3)

defect

Tracking

()

RESOLVED FIXED
85 Branch
Tracking Status
firefox85 --- fixed

People

(Reporter: aosmond, Assigned: aosmond)

Details

Attachments

(1 file)

The bitflags all use the same bit here:

https://searchfox.org/mozilla-central/rev/95cf843de977805a3951f9137f5ff1930599d94e/gfx/wr/webrender/src/render_api.rs#879

as 0b1, 0b01, 0b001, etc are equivalent. It should be 0b1, 0b10, 0b100, etc.

This doesn't appear to cause any actual problems since we appear to only clear everything in the cache anyways via ClearCache::all().

This should not have a functional change because today nothing uses the
individual flags and instead always uses ClearCache::all().

Assignee: nobody → aosmond
Status: NEW → ASSIGNED
Pushed by aosmond@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3c36156a38e3 Fix how ClearCache bits in WebRender were all the same. r=jrmuizel
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 85 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: