Closed Bug 959124 Opened 12 years ago Closed 12 years ago

Implement RemoteBitmapImage::GetAsSourceSurface

Categories

(Core :: Graphics: Layers, defect)

28 Branch
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla29

People

(Reporter: ali, Assigned: ali)

References

Details

(Whiteboard: [qa-])

Attachments

(1 file, 1 obsolete file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36 Steps to reproduce: Implement RemoteBitmapImage::GetAsSourceSurface to do what CairoImage::DeprecatedGetAsSurface does for a SourceSurface
Blocks: 958489
Assignee: nobody → ali
Blocks: 947194
No longer blocks: 958489
Just added a subclass specific implementation of GetAsSourceSurface.
Attachment #8359688 - Flags: review?(nical.bugzilla)
Comment on attachment 8359688 [details] [diff] [review] Implement RemoteBitmapImage::GetAsSourceSurface Review of attachment 8359688 [details] [diff] [review]: ----------------------------------------------------------------- ::: gfx/layers/ImageContainer.cpp @@ +677,5 @@ > > +TemporaryRef<gfx::SourceSurface> > +RemoteBitmapImage::GetAsSourceSurface() > +{ > + gfxImageFormat fmt = RemoteImageData::BGRX32 ? gfxImageFormatRGB24 : gfxImageFormatARGB32; I think you meant: gfxImageFormat fmt = mFormat == RemoteImageData::BGRX32 ? gfxImageFormatRGB24 : gfxImageFormatARGB32; Also, please replace the gfxImageFormat constants above by the Moz2D ones since the only thing you'll do immediately after is convert them to Moz2D's SurfaceFormat.
Attachment #8359688 - Flags: review?(nical.bugzilla) → review-
Blocks: 960053
No longer blocks: 947194
Just added a subclass specific implementation of GetAsSourceSurface.
Attachment #8359688 - Attachment is obsolete: true
Attachment #8361015 - Flags: review?(nical.bugzilla)
Attachment #8361015 - Flags: review?(nical.bugzilla) → review+
Keywords: checkin-needed
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: