Hi,

Just FYI, even though RenderScript isn't exposed in B2G OS, it's nevertheless 
required to build libhwui.so [1]. But building of libhwui.so was removed, as no 
package depends on it [2]. Well, that's not true for manufacturer's image, as 
libandroid_runtime.so has a dependency on libhwui.so. Quite interestingly, 
nightly builds don't build libwhui.so and don't have libandroid_runtime.so 
depends on it.

Looking at the source deeper, libhwui.so comes from platform/framework/base 
repository when USE_OPENGL_RENDERER is true in device/board configuration. 
Which isn't the case in nightly builds. Besides building libhwui.so, I don't 
know the exact impacts of setting USE_OPENGL_RENDERER to true for other 
components. It seems to enable the hardware-accelerated OpenGL back-end of 
libskia.so [3]. Now, is this last one used by B2G OS? According to [4], yes, 
both by Firefox _and_ Firefox OS. But only Gonk developers know the definitive 
answer there ;-)

All in all, in order to build RenderScript and co, which was my initial 
concern, you'll have to rely on CAF platform/build instead of B2G one as it has 
removed dependency on LLVM/Clang long time ago [5]. No more tweak or adjustment 
is then necessary and everything is building fine.

     Émeric


[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1150345
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=1150904
[3] https://en.wikipedia.org/wiki/Skia_Graphics_Engine
[4] https://skia.org/
[5] 
https://github.com/mozilla-b2g/platform_build/commit/dc95bfa4b0b7c28fb4a608b42336f55cf7f3b76e
_______________________________________________
dev-fxos mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-fxos

Reply via email to