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

Commit d91dfd58 authored by Jamie Gennis's avatar Jamie Gennis Committed by Android (Google) Code Review
Browse files

Merge "Set the external display usage bit in Stagefright."

parents 36d26c92 b04c1503
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));