Closed Bug 1473076 Opened 7 years ago Closed 7 years ago

Slim down DrawCommand size for common DrawOptions and StrokeOptions

Categories

(Core :: Graphics: Layers, enhancement, P3)

enhancement

Tracking

()

RESOLVED WONTFIX

People

(Reporter: rhunt, Assigned: rhunt)

References

Details

(Whiteboard: [gfx-noted])

Many DrawCommands take a DrawOptions and some take a StrokeOptions as well. They are all optional arguments, and if not specified are filled in with defaults. I would have to measure the benefits here, but it's possible we could add DrawCommands for a common case of DrawOptions or StrokeOptions and not record it in the capture command list. Then when replaying, we'd fill in the details. Again, we'd need to see if this is worth the effort or not before doing this, but it's possible.
From doing some testing, I haven't been able to find any obvious wins here. I'll close this bug now.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.