Closed Bug 1218802 Opened 10 years ago Closed 7 years ago

Port Gecko to Android M

Categories

(Firefox OS Graveyard :: General, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: tzimmermann, Unassigned)

References

Details

Attachments

(19 files)

974 bytes, patch
Details | Diff | Splinter Review
1.41 KB, patch
Details | Diff | Splinter Review
1.15 KB, patch
Details | Diff | Splinter Review
487 bytes, patch
Details | Diff | Splinter Review
1.02 KB, patch
Details | Diff | Splinter Review
512 bytes, patch
Details | Diff | Splinter Review
7.12 KB, patch
Details | Diff | Splinter Review
420 bytes, patch
Details | Diff | Splinter Review
6.03 KB, patch
Details | Diff | Splinter Review
1.06 KB, patch
Details | Diff | Splinter Review
12.24 KB, patch
Details | Diff | Splinter Review
26.63 KB, patch
Details | Diff | Splinter Review
678 bytes, patch
Details | Diff | Splinter Review
523 bytes, patch
Details | Diff | Splinter Review
1.35 KB, patch
Details | Diff | Splinter Review
11.21 KB, patch
Details | Diff | Splinter Review
917 bytes, patch
Details | Diff | Splinter Review
222.50 KB, patch
Details | Diff | Splinter Review
14.19 KB, patch
Details | Diff | Splinter Review
No description provided.
I cherry-picked all your changes above, but I get errors on FakeSurfaceComposer.cpp: https://pastebin.mozilla.org/8854580 I'm building on sony-aosp-m - everything of ours cherry-picked onto sony's master branches.
Flags: needinfo?(tzimmermann)
Hi Adam (In reply to Adam Farden [:adfad666] from comment #21) > I cherry-picked all your changes above, but I get errors on > FakeSurfaceComposer.cpp: https://pastebin.mozilla.org/8854580 > > I'm building on sony-aosp-m - everything of ours cherry-picked onto sony's > master branches. What you probably have to do is to 'if ANDROID_VERSION'ize the code and distinguish between the old and the new versions. There's a problem with 'asBinder' in the error messages. That function is part of the Binder framework. It seems like you have to pass an argument to it. That should be the class' pointer, as shown in patch [19]. So 's.surface->asBinder()' becomes 's.surface->asBinder(s.surface)'.
Flags: needinfo?(tzimmermann)
Some of these patches have become stale, I've updated patch 18/19, but now I'm hitting new errors I didn't see last time. investigating: In file included from ../../../../gecko/dom/media/omx/MediaOmxCommonReader.cpp:13:0: ../../../../gecko/dom/media/omx/MediaStreamSource.h:23:11: error: 'MediaResourceIndex' in namespace 'mozilla' does not name a type typedef mozilla::MediaResourceIndex MediaResourceIndex; ^ ../../../../gecko/dom/media/omx/MediaStreamSource.h:26:3: error: 'MediaResourceIndex' does not name a type MediaResourceIndex mResource; ^ ../../../../gecko/dom/media/omx/MediaOmxCommonReader.cpp: In member function 'void mozilla::MediaOmxCommonReader::CheckAudioOffload()': ../../../../gecko/dom/media/omx/MediaOmxCommonReader.cpp:60:32: error: invalid use of incomplete type 'class mozilla::MediaResource' = mDecoder->GetResource()->IsDataCachedToEndOfResource(0); ^ In file included from ../../../dist/include/MediaDecoderReader.h:11:0, from ../../../../gecko/dom/media/omx/MediaOmxCommonReader.h:10, from ../../../../gecko/dom/media/omx/MediaOmxCommonReader.cpp:7: ../../../dist/include/AbstractMediaDecoder.h:26:7: error: forward declaration of 'class mozilla::MediaResource' class MediaResource; ^
Flags: needinfo?(tzimmermann)
Thanks for picking up this patch set. I don't know much about the media code, but it looks like you have to include an additional header file. Recently, there was some work on OMX being done in bug 1203859. Maybe Alfredo can help.
Flags: needinfo?(tzimmermann) → needinfo?(ayang)
Actually I discovered that Gecko has a MediaResource.h header but Android Marshmallow now also has a MediaResource.h header in frameworks/av/include/media. It looks like some parts of Gecko are picking the Android header instead of the Gecko header. Quick HAX to compile: Symlink MediaResource.h to MediaResource2.h Add MediaResource2.h to dom/media/moz.build change the #include in dom/media/omx/MediaOmxReader.h and dom/media/omx/MediaStreamSource.h What the correct way to pick the Gecko header over the Android header?
(In reply to Adam Farden [:adfad666] from comment #25) > Actually I discovered that Gecko has a MediaResource.h header but Android > Marshmallow now also has a MediaResource.h header in > frameworks/av/include/media. It looks like some parts of Gecko are picking > the Android header instead of the Gecko header. > > Quick HAX to compile: > > Symlink MediaResource.h to MediaResource2.h > Add MediaResource2.h to dom/media/moz.build > change the #include in dom/media/omx/MediaOmxReader.h and > dom/media/omx/MediaStreamSource.h > > What the correct way to pick the Gecko header over the Android header? I don't have this problem before. Sotaro, have you met this kind of problem before?
Flags: needinfo?(ayang) → needinfo?(sotaro.ikeda.g)
(In reply to Alfredo Yang (:alfredo) from comment #26) > > I don't have this problem before. Sotaro, have you met this kind of problem > before? I did not face exactly same problem. Bug 1158692 is a bit similar. To address the problem, we need distinct include path name. To do it, it seems better to remove "-I$gonkdir/frameworks/av/include/media" from configure.in and change "MediaResource.h" to "media/MediaResource.h" or similar longer path name. https://dxr.mozilla.org/mozilla-central/source/configure.in#286
Flags: needinfo?(sotaro.ikeda.g)
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: