Add gfxPlatform function for creating a wrapped DataSourceSurface

RESOLVED FIXED in mozilla31

Status

()

defect
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: mattwoodrow, Assigned: mattwoodrow)

Tracking

29 Branch
mozilla31
x86
macOS
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

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
Last Resolved: 5 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.