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

Commit 32ebda4d authored by Vishnu Nair's avatar Vishnu Nair
Browse files

[layertracegenerator] avoid allocating unnecessary buffers

Bug: 273958871
Test: check systrace
Change-Id: Id58a41b46b4d03dc6d69259220c04e2f341be4fd
parent 66eb2a68
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -27,9 +27,7 @@
namespace android::surfaceflinger {

class FakeExternalTexture : public renderengine::ExternalTexture {
    const sp<GraphicBuffer> mEmptyBuffer =
            sp<GraphicBuffer>::make(1u, 1u, PIXEL_FORMAT_RGBA_8888,
                                    GRALLOC_USAGE_SW_WRITE_OFTEN | GRALLOC_USAGE_SW_READ_OFTEN);
    const sp<GraphicBuffer> mEmptyBuffer = nullptr;
    uint32_t mWidth;
    uint32_t mHeight;
    uint64_t mId;