OSDN Git Service

Enable shader cache for applications that shared UID with multiple packages too
authorShuo Gao <shuo.gao@intel.com>
Tue, 1 Mar 2016 05:32:03 +0000 (13:32 +0800)
committerMiao Wang <miaowang@google.com>
Thu, 22 Sep 2016 17:46:49 +0000 (10:46 -0700)
commit1e6d77e836f8826fbd8152af3400e40f22f43362
tree50cfe4e2821fb90e7b3c32d92065ddf298789f30
parentdd6230d466606cdd4d2cac8934875a5778046229
Enable shader cache for applications that shared UID with multiple packages too

Bug: 31224514

Frameworks supported a mature mechanism for shader cache per each package already,
but as a special case such as Settings APP, if there are several packages in this
application which means that multiple packages shared the same SharedUserID with it,
it won't initialize the graphics disk caches, thereby APP like Settings have to
rebuild and relink shader every time during launch, which cause a bad launching
performance, so here to enable the GFX and RS cache initialization for multiple
shared packages case too.

Change-Id: If0f927e3399b775804abf1d9a868887951f471c5
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Zhiquan Liu <zhiquan.liu@intel.com>
(cherry picked from commit 7c69a669a53ad3de05cf429978a3e848070d1391)
core/java/android/app/ActivityThread.java