Romain Guy 7c25aab491 Defer layer rendering to avoid stalls
Bug #7326824

When a layer is taken out of the cache and initialized it gets cleared
to prepare it for future rendering. This triggers the following sequence
of operations:

glBindFramebuffer(layer.fbo)
attach texture storage to FBO
glClear()
glBindFramebuffer(defaultFbo)

The clear forces a resolve on tilers which stalls the CPU for a little
while, thus producing jank during animations. This change moves the
clear to the next frame when we know we will have to execute a resolve
anyway.

Change-Id: Ic1939c25df20ed65a4c48dc81ee549b2cd8b6ec3
2012-10-18 15:05:02 -07:00
..
2012-09-28 13:55:44 -07:00
2012-05-18 10:58:45 -07:00
2012-08-01 19:18:35 -07:00
2012-09-04 16:44:17 -07:00
2012-08-03 17:43:31 -07:00
2012-07-31 18:55:16 -07:00
2012-10-18 15:05:02 -07:00
2012-09-28 13:55:44 -07:00
2012-09-28 13:55:44 -07:00
2012-10-10 17:13:36 -07:00
2012-10-10 16:06:04 -07:00
2012-09-26 16:39:40 -07:00
2012-09-26 16:39:40 -07:00
2012-09-28 13:55:44 -07:00
2012-09-28 13:55:44 -07:00
2012-10-16 18:44:09 -07:00