Closed Bug 996393 Opened 10 years ago Closed 10 years ago

Add gfxPlatform function for creating a wrapped DataSourceSurface

Categories

(Core :: Graphics, defect)

29 Branch
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla31

People

(Reporter: mattwoodrow, Assigned: mattwoodrow)

References

Details

Attachments

(2 files)

Sometimes we want a DataSourceSurface that wraps existing pixel data, instead of getting a surface specific to a DT.

In particular, we want to do this in SurfaceFromElement when the existing pixel data contains un-premultiplied data. We also want to avoid uploading to direct2d if the caller just wants to access the pixel data.
Attachment #8406589 - Flags: review?(roc)
https://hg.mozilla.org/integration/mozilla-inbound/rev/b0d7055b1049
https://hg.mozilla.org/integration/mozilla-inbound/rev/cd8469d0dd5e

Thanks, Matt! I removed the assertion from the second patch as discussed on IRC. (It could legitimately fail due to zero sized surfaces, etc.)
https://hg.mozilla.org/mozilla-central/rev/b0d7055b1049
https://hg.mozilla.org/mozilla-central/rev/cd8469d0dd5e
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
Assignee: nobody → matt.woodrow
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: