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

Commit 60d804b2 authored by Steve Kondik's avatar Steve Kondik
Browse files

Add QCOM_BSP_LEGACY for setBuffersSize feature

 * This is deprecated and causes breakage on 8974 L BSPs.

Change-Id: Id095d9c88a67ed2d46086c6089598166823b6625
parent 411da854
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -169,7 +169,7 @@ public:
    // handle if any.
    virtual status_t setSidebandStream(const sp<NativeHandle>& stream);

#ifdef QCOM_BSP
#ifdef QCOM_BSP_LEGACY
    // setBufferSize enables us to specify user defined sizes for the buffers
    // that need to be allocated by surfaceflinger for its client. This is
    // useful for cases where the client doesn't want the gralloc to calculate
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ public:
    virtual ~GraphicBufferAlloc();
    virtual sp<GraphicBuffer> createGraphicBuffer(uint32_t w, uint32_t h,
        PixelFormat format, uint32_t usage, status_t* error);
#ifdef QCOM_BSP
#ifdef QCOM_BSP_LEGACY
    virtual void setGraphicBufferSize(int size);
private:
    int mBufferSize;
+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ public:
     */
    virtual sp<GraphicBuffer> createGraphicBuffer(uint32_t w, uint32_t h,
            PixelFormat format, uint32_t usage, status_t* error) = 0;
#ifdef QCOM_BSP
#ifdef QCOM_BSP_LEGACY
    virtual void setGraphicBufferSize(int size) = 0;
#endif
};
+1 −1
Original line number Diff line number Diff line
@@ -482,7 +482,7 @@ public:
    virtual void allocateBuffers(bool async, uint32_t width, uint32_t height,
            uint32_t format, uint32_t usage) = 0;

#ifdef QCOM_BSP
#ifdef QCOM_BSP_LEGACY
    // setBufferSize enables to specify the user defined size of the buffer
    // that needs to be allocated by surfaceflinger for its client. This is
    // useful for cases where the client doesn't want the gralloc to calculate
+3 −3
Original line number Diff line number Diff line
@@ -149,7 +149,7 @@ private:
    int dispatchSetCrop(va_list args);
    int dispatchSetPostTransformCrop(va_list args);
    int dispatchSetUsage(va_list args);
#ifdef QCOM_BSP
#ifdef QCOM_BSP_LEGACY
    int dispatchSetBuffersSize(va_list args);
#endif
    int dispatchLock(va_list args);
@@ -178,7 +178,7 @@ protected:
    virtual int setBuffersTimestamp(int64_t timestamp);
    virtual int setCrop(Rect const* rect);
    virtual int setUsage(uint32_t reqUsage);
#ifdef QCOM_BSP
#ifdef QCOM_BSP_LEGACY
    virtual int setBuffersSize(int size);
#endif

@@ -229,7 +229,7 @@ private:
    // at the next deuque operation. It is initialized to 0.
    uint32_t mReqUsage;

#ifdef QCOM_BSP
#ifdef QCOM_BSP_LEGACY
    // mReqSize is the size of the buffer that will be requested
    // at the next dequeue operation. It is initialized to 0.
    uint32_t mReqSize;
Loading