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

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

SurfaceMediaSource: remove getAllocator method

This change removes the getAllocator method from SurfaceMediaSource
because that method is no longer a part of the ISurfaceTexture
interface.

Change-Id: I0e2f0bc3bc1c8cd3c1b4b14246f07b9b4e3066c3
parent 95b40422
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -163,13 +163,6 @@ public:
    // when a new frame becomes available.
    void setFrameAvailableListener(const sp<FrameAvailableListener>& listener);

    // getAllocator retrieves the binder object that must be referenced as long
    // as the GraphicBuffers dequeued from this SurfaceMediaSource are referenced.
    // Holding this binder reference prevents SurfaceFlinger from freeing the
    // buffers before the client is done with them.
    sp<IBinder> getAllocator();


    // getCurrentBuffer returns the buffer associated with the current image.
    sp<GraphicBuffer> getCurrentBuffer() const;

+0 −6
Original line number Diff line number Diff line
@@ -525,12 +525,6 @@ void SurfaceMediaSource::setFrameAvailableListener(
    mFrameAvailableListener = listener;
}

sp<IBinder> SurfaceMediaSource::getAllocator() {
    LOGV("getAllocator");
    return mGraphicBufferAlloc->asBinder();
}


void SurfaceMediaSource::freeAllBuffers() {
    LOGV("freeAllBuffers");
    for (int i = 0; i < NUM_BUFFER_SLOTS; i++) {