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

Commit b04c1503 authored by Jamie Gennis's avatar Jamie Gennis
Browse files

Set the external display usage bit in Stagefright.

Change-Id: Ie18fa773fdb83508d96300dd7e4e4c7c3cdc4540
parent 3d019afc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1714,7 +1714,7 @@ status_t OMXCodec::allocateOutputBuffersFromNativeWindow() {
    // Set up the native window.
    // XXX TODO: Get the gralloc usage flags from the OMX plugin!
    err = native_window_set_usage(
            mNativeWindow.get(), GRALLOC_USAGE_HW_TEXTURE);
            mNativeWindow.get(), GRALLOC_USAGE_HW_TEXTURE | GRALLOC_USAGE_EXTERNAL_DISP);
    if (err != 0) {
        LOGE("native_window_set_usage failed: %s (%d)", strerror(-err), -err);
        return err;
+1 −1
Original line number Diff line number Diff line
@@ -88,7 +88,7 @@ SoftwareRenderer::SoftwareRenderer(
            native_window_set_usage(
            mSurface.get(),
            GRALLOC_USAGE_SW_READ_NEVER | GRALLOC_USAGE_SW_WRITE_OFTEN
            | GRALLOC_USAGE_HW_TEXTURE));
            | GRALLOC_USAGE_HW_TEXTURE | GRALLOC_USAGE_EXTERNAL_DISP));

    CHECK_EQ(0, native_window_set_buffer_count(mSurface.get(), 2));