Closed
Bug 959124
Opened 12 years ago
Closed 12 years ago
Implement RemoteBitmapImage::GetAsSourceSurface
Categories
(Core :: Graphics: Layers, defect)
Tracking
()
RESOLVED
FIXED
mozilla29
People
(Reporter: ali, Assigned: ali)
References
Details
(Whiteboard: [qa-])
Attachments
(1 file, 1 obsolete file)
|
1.79 KB,
patch
|
nical
:
review+
|
Details | Diff | Splinter Review |
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
Updated•12 years ago
|
Assignee: nobody → ali
Just added a subclass specific implementation of GetAsSourceSurface.
Attachment #8359688 -
Flags: review?(nical.bugzilla)
Comment 3•12 years ago
|
||
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-
Just added a subclass specific implementation of GetAsSourceSurface.
Attachment #8359688 -
Attachment is obsolete: true
Attachment #8361015 -
Flags: review?(nical.bugzilla)
Updated•12 years ago
|
Attachment #8361015 -
Flags: review?(nical.bugzilla) → review+
Keywords: checkin-needed
Comment 5•12 years ago
|
||
Keywords: checkin-needed
Comment 6•12 years ago
|
||
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
Updated•12 years ago
|
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•