diff options
author | Thomas Buhot <thomas.buhot@intel.com> | 2015-12-04 12:18:03 +0100 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2015-12-16 11:02:44 -0800 |
commit | 1003c499017267bc497fc45cf8802cb933d9781b (patch) | |
tree | eebf940241683f839e9c87e420ac40bcb38e8295 /libs/common_time/common_time_server.cpp | |
parent | ec4c775f1d4fbf17c249f3e763f7df0ed8ceff31 (diff) | |
download | frameworks_base-1003c499017267bc497fc45cf8802cb933d9781b.zip frameworks_base-1003c499017267bc497fc45cf8802cb933d9781b.tar.gz frameworks_base-1003c499017267bc497fc45cf8802cb933d9781b.tar.bz2 |
libhwui: make setSurface asynchronous
On the critical path of the cold launch of applications
the main thread of the started application tells the RenderThread
to create a surface. This process is synchronous and blocks
the main thread of the application until the creation
of the EGLContext is complete.
As a consequence the launch time of the application is delayed
by time spent allocating the EGL Context in the RenderThread.
With this optimization the launch time of any application
is improved (for example settings by 20 to 40 ms).
Change-Id: I41cfe4e18f2d26af5058b8b17c19df60ac1e5d85
Signed-off-by: Thomas Buhot <thomas.buhot@intel.com>
Signed-off-by: Zhiquan Liu <zhiquan.liu@intel.com>
Diffstat (limited to 'libs/common_time/common_time_server.cpp')
0 files changed, 0 insertions, 0 deletions