0

Is actually in the end everything rendered via OpenGL in Android. I have already checked out this video https://youtu.be/zdQRIYOST64 and the relevant documents. And it seems that not all is rendered via OpenGL or maybe Vulkan nowadays. But when it is not rendered via this, how is it rendered, via some internal stuff inside the SurfaceFlinger? Can someone show up the way through the code from the application level to the very last point before the hardware?

Nicol Bolas
  • 449,505
  • 63
  • 781
  • 982
  • This feels like a duplicate of [Are Android Views backed by OpenGL?](https://stackoverflow.com/q/60197470/295004) If you've seen [AOSP Graphics Documentation](https://source.android.com/devices/graphics) you should quote from that about any doubts but the entire framework is too broad for a detailed SO answer. – Morrison Chang Jun 15 '20 at 01:46
  • I found another question about this topic https://stackoverflow.com/questions/5699107/android-surfaceflinger – Heiko Averbeck Jun 15 '20 at 12:59

1 Answers1

2

I have asked @Romain Guy on twitter to answer this question and this is his answer https://twitter.com/romainguy/status/1272314819333337090

Apps are rendered pretty much entirely with OpenGL yes. SurfaceFlinger avoids using the GPU whenever possible and uses dedicated compositing hardware instead (hardware composer). But sometimes it falls back to GL.