OSDN Git Service

libEGL: Add initialization tracing
authorJesse Hall <jessehall@google.com>
Fri, 20 Jan 2017 01:43:26 +0000 (17:43 -0800)
committerJesse Hall <jessehall@google.com>
Fri, 20 Jan 2017 23:59:02 +0000 (15:59 -0800)
commitbb5a921fef0445f1ffa4fe0781cd1b8108ad79ce
tree4dafdfdf673718177baf4db425c20e09de8a489a
parenta91f64cbe1bc057a466a865446767ffd48133a8f
libEGL: Add initialization tracing

The first call to eglGetDisplay() loads drivers and initializes
dispatch tables. This currently takes significant time (85-100 ms),
and can must be done before the first frame of an app can be shown.

This change adds systrace markers for the major parts of this process,
as a precursor to optimizing them.

Bug: 34404021
Test: manual systrace of calculator app startup on bullhead
Change-Id: Ibdd62ba4eb0d69e472c64081554c16283967ae08
Merged-In: If1ecb5a81f9d33daf72c6f3e5b403972f8529b2d
opengl/libs/EGL/Loader.cpp
opengl/libs/EGL/eglApi.cpp
opengl/libs/EGL/egl_display.cpp