OSDN Git Service

Generate the SurfaceFlinger shader cache on initialization
authorRiley Andrews <riandrews@google.com>
Mon, 29 Sep 2014 20:29:40 +0000 (13:29 -0700)
committerRom Lemarchand <romlem@google.com>
Fri, 3 Oct 2014 17:21:15 +0000 (17:21 +0000)
commit6747be9fab9981ec24729cede5e0fe779e8b8914
tree2b390bc3c92a3226246d12579a10f8b36f03e209
parentf05ef4e542c3041379025e16497ff23710de5dbf
Generate the SurfaceFlinger shader cache on initialization

Blobcache is not yet enabled for surfaceflinger (as it should be).
As a temporary workaround, generate all needed shaders during
surfaceflinger initialization instead of doing the compilation
on-demand during ui transitions.

Change-Id: I14455b20a3f85f177d85c9c8b76d8ccc35379b39
services/surfaceflinger/RenderEngine/ProgramCache.cpp
services/surfaceflinger/RenderEngine/ProgramCache.h