Open Bug 1340130 Opened 7 years ago Updated 7 months ago

Skip the content initialization for DrawTarget if the content will be replaced soon

Categories

(Core :: Graphics, defect, P3)

defect

Tracking

()

People

(Reporter: jerry, Unassigned)

References

(Depends on 1 open bug)

Details

Attachments

(2 files)

In [1], we create a DrawTarget and copy another surface on it. In this case, we don't need to have the initial value for that DrawTarget.

This bug try to create a new api CreateSimilarDrawTargetWithSurfaceData(), and skip the initial operation if possible.

[1]
https://hg.mozilla.org/mozilla-central/annotate/51377a64158941f89ed73f388ae437cfa494c030/dom/canvas/CanvasRenderingContext2D.cpp#l4372
MozReview-Commit-ID: KCWemfPo14A
Attachment #8838018 - Flags: review?(bas)
MozReview-Commit-ID: CLdYEo1HDzC
Attachment #8838019 - Flags: review?(bas)
Do we have an example case where this speeds things up?  It'd be good to track the improvement.
Unless we get an answer to Milan's question I'm going to unflag these patches for review? I'm willing to believe this is a good change for sure, but I'd like to see some data backing it up.
Attachment #8838018 - Flags: review?(bas)
Attachment #8838019 - Flags: review?(bas)

The bug assignee didn't login in Bugzilla in the last 7 months.
:bhood, could you have a look please?
For more information, please visit auto_nag documentation.

Assignee: bignose1007+bugzilla → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(bhood)
Flags: needinfo?(bhood)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: