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

Commit 8601f886 authored by Chia-I Wu's avatar Chia-I Wu
Browse files

surfaceflinger: move EGL version/extensions dump into RE

Test: SurfaceFlinger_test
Change-Id: I0c6e258e5ab2e55c7092d1642627c573038b99ac
parent b01450b7
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -271,6 +271,11 @@ void RenderEngine::readPixels(size_t l, size_t b, size_t w, size_t h, uint32_t*
}

void RenderEngine::dump(String8& result) {
    result.appendFormat("EGL implementation : %s\n",
            eglQueryStringImplementationANDROID(mEGLDisplay, EGL_VERSION));
    result.appendFormat("%s\n",
            eglQueryStringImplementationANDROID(mEGLDisplay, EGL_EXTENSIONS));

    const GLExtensions& extensions(GLExtensions::getInstance());
    result.appendFormat("GLES: %s, %s, %s\n",
            extensions.getVendor(),
+0 −9
Original line number Diff line number Diff line
@@ -101,8 +101,6 @@
 */
#define DEBUG_SCREENSHOTS   false

extern "C" EGLAPI const char* eglQueryStringImplementationANDROID(EGLDisplay dpy, EGLint name);

namespace android {

using namespace android::hardware::configstore;
@@ -3928,13 +3926,6 @@ void SurfaceFlinger::dumpAllLocked(const Vector<String16>& args, size_t& index,
    HWComposer& hwc(getHwComposer());
    sp<const DisplayDevice> hw(getDefaultDisplayDeviceLocked());

    colorizer.bold(result);
    result.appendFormat("EGL implementation : %s\n",
            eglQueryStringImplementationANDROID(mEGLDisplay, EGL_VERSION));
    colorizer.reset(result);
    result.appendFormat("%s\n",
            eglQueryStringImplementationANDROID(mEGLDisplay, EGL_EXTENSIONS));

    mRenderEngine->dump(result);

    hw->undefinedRegion.dump(result, "undefinedRegion");