Closed
Bug 824642
Opened 12 years ago
Closed 12 years ago
PlanarYCbCrImage::GetAsSurface does not create surface optimized for platform
Categories
(Core :: Graphics: Layers, defect)
Tracking
()
RESOLVED
FIXED
mozilla21
People
(Reporter: romaxa, Assigned: romaxa)
References
Details
Attachments
(1 file, 1 obsolete file)
2.48 KB,
patch
|
nical
:
review+
|
Details | Diff | Splinter Review |
While testing OMTC embedding on Arm device platform I noticed that we do not use arm neon yuv conversion.
we do create surface in PlanarYCbCrImage::GetAsSurface, and mOffscreenFormat always gfxASurface::ImageFormatUnknown.
I guess it would make sense use platform::OffscreenFormat in case if mOffscreenFormat is not set.
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #695664 -
Flags: review?(nsilva)
Assignee | ||
Updated•12 years ago
|
Attachment #695664 -
Flags: review?(joe)
Comment 2•12 years ago
|
||
Comment on attachment 695664 [details] [diff] [review]
Use platform offscreen format when default not set
Review of attachment 695664 [details] [diff] [review]:
-----------------------------------------------------------------
I would prefer if GetOffscreenFormat() had that logic in it, actually.
While I'm supportive of this in general, I'm not sure if it's a bug that SetOffscreenFormat() hasn't been called, so I'll leave it up to nical for the final review.
Attachment #695664 -
Flags: review?(joe) → review+
Comment 3•12 years ago
|
||
Comment on attachment 695664 [details] [diff] [review]
Use platform offscreen format when default not set
Review of attachment 695664 [details] [diff] [review]:
-----------------------------------------------------------------
I agree with Joe, GetOffscreenFormat should have this logic. Actually I wonder why we store mOffscreenFormat as member of PlanarYCbCrImage rather than making GetOffscreenFormat virtual and returning the platform's offscreen format by default, no one seems to set the offscreen format except sub-classes. I'd be happy with either of these two solutions.
Assignee | ||
Comment 4•12 years ago
|
||
Assignee: nobody → romaxa
Attachment #695664 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #695664 -
Flags: review?(nsilva)
Attachment #703782 -
Flags: review?
Assignee | ||
Updated•12 years ago
|
Attachment #703782 -
Flags: review? → review?(nical.bugzilla)
Comment 5•12 years ago
|
||
Comment on attachment 703782 [details] [diff] [review]
Use platform offscreen format when default not set
Review of attachment 703782 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks
Attachment #703782 -
Flags: review?(nical.bugzilla) → review+
Assignee | ||
Comment 6•12 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=da28d6bafd71 - use this patch https://hg.mozilla.org/try/raw-rev/dc583e035959
Keywords: checkin-needed
Comment 7•12 years ago
|
||
Keywords: checkin-needed
Comment 8•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in
before you can comment on or make changes to this bug.
Description
•