Closed Bug 777430 Opened 13 years ago Closed 13 years ago

Talos tsvgr_opacity regression when SVG display lists enabled

Categories

(Core :: SVG, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla17

People

(Reporter: jwatt, Assigned: jwatt)

References

Details

(Keywords: perf)

Attachments

(1 file)

Testing locally, small-group-opacity-2500.svg seems to take 5x or so longer to render when SVG display lists are enabled. I thought at first this must be because the group opacity optimization wasn't working correctly with display lists, but in fact we can't even use that optimization for this test, so that's not it. Needs some investigation.
Attached patch patchSplinter Review
Attachment #647771 - Flags: review?(roc)
For the record, the problem is that when SDL is enabled, we create an nsDisplayOpacity item to handle the group opacity on all the rects. When painting through that we end up under BasicLayerThebes::PaintThebes where we call BasicLayerManager::PushGroupForLayer, which calls gfxContext::PushGroupAndCopyBackground. The PushGroupAndCopyBackground call spends virtually all its time in _moz_cairo_paint is much more expensive than the PushGroup call (which doesn't call _moz_cairo_paint) we make in the SDL-disabled path. In fact it takes up 80% of the paint time. A PushGroup call in comparison is virtually free.
Keywords: perf
Thanks, roc!
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: