Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f0f68117 authored by John Reck's avatar John Reck Committed by Android (Google) Code Review
Browse files

Merge "Trace some interesting events" into lmp-mr1-dev

parents f984eb42 fbc8df03
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -33,6 +33,8 @@ void AssetAtlas::init(sp<GraphicBuffer> buffer, int64_t* map, int count) {
        return;
    }

    ATRACE_NAME("AssetAtlas::init");

    mImage = new Image(buffer);

    if (mImage->getTexture()) {
+2 −0
Original line number Diff line number Diff line
@@ -66,6 +66,8 @@ Caches::Caches(): Singleton<Caches>(),
bool Caches::init() {
    if (mInitialized) return false;

    ATRACE_NAME("Caches::init");

    glGenBuffers(1, &meshBuffer);
    glBindBuffer(GL_ARRAY_BUFFER, meshBuffer);
    glBufferData(GL_ARRAY_BUFFER, sizeof(gMeshVertices), gMeshVertices, GL_STATIC_DRAW);
+2 −0
Original line number Diff line number Diff line
@@ -71,6 +71,8 @@ void CanvasContext::destroy() {
}

void CanvasContext::setSurface(ANativeWindow* window) {
    ATRACE_CALL();

    mNativeWindow = window;

    if (mEglSurface != EGL_NO_SURFACE) {
+2 −0
Original line number Diff line number Diff line
@@ -82,6 +82,8 @@ EglManager::EglManager(RenderThread& thread)
void EglManager::initialize() {
    if (hasEglContext()) return;

    ATRACE_NAME("Creating EGLContext");

    mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY);
    LOG_ALWAYS_FATAL_IF(mEglDisplay == EGL_NO_DISPLAY,
            "Failed to get EGL_DEFAULT_DISPLAY! err=%s", egl_error_str());