Closed Bug 958420 Opened 11 years ago Closed 11 years ago

[Display][gonk-kk] remove obsolete code trying to use PIXEL_FORMAT_A_8 with gralloc

Categories

(Firefox OS Graveyard :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
1.3 C2/1.4 S2(17jan)

People

(Reporter: schiu, Assigned: schiu)

References

Details

Attachments

(2 files, 1 obsolete file)

Google obsoleted PIXEL_FORMAT_A_8 in Kitkat, it need to be seperated from older version from compiling error
Attached patch pix-format-a8.diff (obsolete) — Splinter Review
Attachment #8358276 - Flags: review?(pchang)
Attachment #8358276 - Flags: review?(mwu)
Comment on attachment 8358276 [details] [diff] [review] pix-format-a8.diff Deferring to Sotaro - I don't know how much we care about these formats. If we don't care, we could remove it completely.
Attachment #8358276 - Flags: review?(mwu) → review?(sotaro.ikeda.g)
Comment on attachment 8358276 [details] [diff] [review] pix-format-a8.diff Review of attachment 8358276 [details] [diff] [review]: ----------------------------------------------------------------- ::: gfx/layers/ipc/ShadowLayerUtilsGralloc.cpp @@ +158,3 @@ > case PIXEL_FORMAT_A_8: > return gfxImageFormatA8; > +#endif I just checked the history that these code were added during android porting. And I didn't see b2g use pixel_format_A_8 before. Maybe it is good to remove this.
I never saw pixel_format_A_8 is used in Android. It could be removed.
Actually, b2g phone's(buri) gralloc hal does not support pixel_format_A_8. During developing Bug 946720, some patch unintentionally tried to create pixel_format_A_8 as gfx mask layer. But gralloc hal failed to create it.
Removed all case handling of PIXEL_FORMAT_A8 which relative to Kitkat's change.
Attachment #8358276 - Attachment is obsolete: true
Attachment #8358276 - Flags: review?(sotaro.ikeda.g)
Attachment #8358276 - Flags: review?(pchang)
Attachment #8359022 - Flags: review?(sotaro.ikeda.g)
Attachment #8359022 - Flags: review?(pchang)
Attachment #8359022 - Flags: review?(pchang) → review+
Comment on attachment 8359022 [details] [diff] [review] a8-obsoleted.diff Looks good. A8 isn't supported by gralloc anyway. Please land it asap.
Attachment #8359022 - Flags: review?(sotaro.ikeda.g) → review+
Summary: [Display][gonk-kk] The obsoleted pixel format - PIXEL_FORMAT_A_8 need to seperated → [Display][gonk-kk] remove obsolete code trying to use PIXEL_FORMAT_A_8 with gralloc
Assignee: nobody → schiu
Hi mwu, sorry had to backout this change because of merge conflicts from mozilla-central to b2g-inbound in regard of the files changes by this push and in order to make the merge i had to backout this changeset
This was trivial to rebase, so I went ahead and re-landed it. https://hg.mozilla.org/integration/b2g-inbound/rev/d0b6a2d398b6
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → 1.3 C2/1.4 S2(17jan)
Can you do a follow-up?
I am very sorry for missing the last case in GrallocTextureClient.cpp, and just uploaded the patch.
Attachment #8360265 - Flags: review?(mwu)
Attachment #8360265 - Flags: review?(mwu) → review+
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → FIXED
Blocks: 964976
Flags: needinfo?(schiu)
Flags: needinfo?(schiu)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: