Only use hardware layers on API12+.