Closed Bug 1034664 Opened 11 years ago Closed 11 years ago

The canvas graphs should use a cache of canvas elements instead of creating a new one every time an off-screen render target is needed

Categories

(DevTools :: Performance Tools (Profiler/Timeline), defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 33

People

(Reporter: vporof, Assigned: vporof)

References

Details

Attachments

(1 file)

Title should be self-explanatory. We're creating new canvases quite a lot for offscreen rendering. This can be optimized.
Attached patch v1Splinter Review
Assignee: nobody → vporof
Status: NEW → ASSIGNED
Attachment #8451095 - Flags: review?(pbrosset)
Depends on: 1034661
Blocks: 879008, 1034668
Comment on attachment 8451095 [details] [diff] [review] v1 Review of attachment 8451095 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/devtools/shared/widgets/Graphs.jsm @@ +578,5 @@ > this.emit("refresh"); > }, > > /** > + * Gets a canvas with the specified name, for this specific graph. nit: That's a lot of "specific"! I think just "Gets a canvas with the specified name, for this graph." would be enough.
Attachment #8451095 - Flags: review?(pbrosset) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 33
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: