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

Commit 695b66f0 authored by Mathias Agopian's avatar Mathias Agopian
Browse files

fix build.

Change-Id: I49262ac143da297efcaec4eed04052274c73b7f8
parent 0e5484f7
Loading
Loading
Loading
Loading
+7 −13
Original line number Diff line number Diff line
@@ -40,7 +40,6 @@
#include <pixelflinger/pixelflinger.h>

#include <private/ui/android_natives_priv.h>
#include <private/ui/sw_gralloc_handle.h>

#include <hardware/copybit.h>

@@ -446,15 +445,10 @@ status_t egl_window_surface_v2_t::lock(
        android_native_buffer_t* buf, int usage, void** vaddr)
{
    int err;
    if (sw_gralloc_handle_t::validate(buf->handle) < 0) {

    err = module->lock(module, buf->handle,
            usage, 0, 0, buf->width, buf->height, vaddr);
    } else {
        sw_gralloc_handle_t const* hnd =
                reinterpret_cast<sw_gralloc_handle_t const*>(buf->handle);
        *vaddr = (void*)hnd->base;
        err = NO_ERROR;
    }

    return err;
}

@@ -462,9 +456,9 @@ status_t egl_window_surface_v2_t::unlock(android_native_buffer_t* buf)
{
    if (!buf) return BAD_VALUE;
    int err = NO_ERROR;
    if (sw_gralloc_handle_t::validate(buf->handle) < 0) {

    err = module->unlock(module, buf->handle);
    }

    return err;
}