1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking Benchmarking Platform
Phoromatic Test Orchestration

A Look At Android's Graphics Rendering Pipeline

Google

Published on 06 December 2011 08:24 PM EST
Written by Michael Larabel in Google
2 Comments

For those interested in Android and graphics, here's a look at their graphics rendering pipeline as written by a long-time Android developer.

Dianne Hackborn, an Android Framework Engineer going back to 2005, has written on Google+ various facts about the Android graphics pipeline. Dianne wrote this public posting to correct the information that's out there about Android graphics. Below are some of her more interesting comments.
- "Full" hardware accelerated drawing within a window was added in Android 3.0. The implementation in Android 4.0 is not any more full than in 3.0. Starting with 3.0, if you set the flag in your app saying that hardware accelerated drawing is allowed, then all drawing to the application’s windows will be done with the GPU. The main change in this regard in Android 4.0 is that now apps that are explicitly targeting 4.0 or higher will have acceleration enabled by default rather than having to put android:handwareAccelerated="true" in their manifest.

- Hardware accelerated drawing is not all full of win. For example on the PVR drivers of devices like the Nexus S and Galaxy Nexus, simply starting to use OpenGL in a process eats about 8MB of RAM. Given that our process overhead is about 2MB, this is pretty huge. That RAM takes away from other things, such as the number of background processes that can be kept running, potentially slowing down things like app switching.

- Because of the overhead of OpenGL, one may very well not want to use it for drawing. For example some of the work we are doing to make Android 4.0 run well on the Nexus S has involved turning off hardware accelerated drawing in parts of the UI so we don’t lose 8MB of RAM in the system process, another 8MB in the phone process, another 8MB in the system UI process, etc...

- ...To get 60fps animation, Android 3.0 and later use a number of tricks. A big one is that it tries to put all windows into overlays instead of having to copy them to the framebuffer with the GPU. In the case here even with that we are still over-budget, but we have another trick: because the wallpaper on Android is in a separate window, we can make this window larger than the screen to hold the entire bitmap. Now, as you scroll, the movement of the background doesn’t require any drawing, just moving its window... and because this window is in an overlay, it doesn’t even need to be composited to the screen with the GPU.

Read more in her Google+ posting, which is likely of interest to many Phoronix readers due to the graphics hardware focus.

As of this August, there's mainline support in Mesa/Gallium3D for Android too, but that's more relevant to Android for x86.

About The Author
Michael Larabel is the principal author of Phoronix.com and founded the web-site in 2004 with a focus on enriching the Linux hardware experience and being the largest web-site devoted to Linux hardware reviews, particularly for products relevant to Linux gamers and enthusiasts but also commonly reviewing servers/workstations and embedded Linux devices. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics hardware drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated testing software. He can be followed via and or contacted via .
Latest Linux News
  1. XDC2015 X.Org Conference Announced, CFP Issued
  2. Libinput 0.16 Now Supports Devices Like The Chromebook Pixel
  3. Wondering If HP Will Release Linux++ This Month
  4. Valve Appears To Be Rolling Out Source 2 Version Of Dota 2
  5. PyPy 2.6 Released, ~7x Faster Than CPython
  6. BQ Aquaris E5 Ubuntu Phone Being Released Next Week
  7. Fedora 23 May Feature Cinnamon Desktop Spin & "Netizen" Version
  8. Wine-Staging 1.7.44 Introduces More Bug Fixes
  9. The Intel Graphics Changes For The Linux 4.2 Kernel
  10. Microsoft To Release Windows 10 On 29 July
Latest Articles & Reviews
  1. Intel Compute Stick Performance Surprises Under Ubuntu Linux
  2. Linux 4.1 Brings Performance Boosts For Some Intel Low-Power Hardware
  3. Radeon OpenGL Benchmarks On Fedora 22
  4. Btrfs RAID 0/1/5/6/10 Five-Disk Benchmarks On Linux 4.1
Most Viewed News This Week
  1. Friction Building Around An Ubuntu Community Council Decision
  2. Russia's Baikal Chips End Up Going For A MIPS CPU
  3. For AMD Users, Linux 4.2 Will Bring The New AMDGPU Driver & VCE1 For Radeon
  4. Bye Bye Mandriva, She's Being Liquidated
  5. GNU Octave 4.0 Released, Includes A GUI & OpenGL
  6. Confusion Mounts Over Wayland's Actual License
  7. Ubuntu Community Council Reaffirms Its Decision Against Kubuntu's Leader
  8. Running Linux On The Intel Compute Stick