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

Commit 4aa4ead8 authored by Ady Abraham's avatar Ady Abraham
Browse files

composer: vts: fix display type

display is 64bit and not 32bit

Test: build
Bug: 202766745
Change-Id: I0e0d53222b306fe303867a105868e85e072c0299
parent 31fc4bd9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -274,7 +274,7 @@ LayerSettings TestColorLayer::toRenderEngineLayerSettings() {

TestBufferLayer::TestBufferLayer(const std::shared_ptr<IComposerClient>& client,
                                 const ::android::sp<::android::GraphicBuffer>& graphicBuffer,
                                 TestRenderEngine& renderEngine, int32_t display, uint32_t width,
                                 TestRenderEngine& renderEngine, int64_t display, uint32_t width,
                                 uint32_t height, common::PixelFormat format,
                                 Composition composition)
    : TestLayer{client, display}, mRenderEngine(renderEngine) {
+3 −3
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ class TestRenderEngine;

class TestLayer {
  public:
    TestLayer(const std::shared_ptr<IComposerClient>& client, int32_t display)
    TestLayer(const std::shared_ptr<IComposerClient>& client, int64_t display)
        : mComposerClient(client) {
        client->createLayer(display, kBufferSlotCount, &mLayer);
    }
@@ -100,7 +100,7 @@ class TestLayer {

class TestColorLayer : public TestLayer {
  public:
    TestColorLayer(const std::shared_ptr<IComposerClient>& client, int32_t display)
    TestColorLayer(const std::shared_ptr<IComposerClient>& client, int64_t display)
        : TestLayer{client, display} {}

    void write(const std::shared_ptr<CommandWriterBase>& writer) override;
@@ -117,7 +117,7 @@ class TestBufferLayer : public TestLayer {
  public:
    TestBufferLayer(const std::shared_ptr<IComposerClient>& client,
                    const ::android::sp<::android::GraphicBuffer>& graphicBuffer,
                    TestRenderEngine& renderEngine, int32_t display, uint32_t width,
                    TestRenderEngine& renderEngine, int64_t display, uint32_t width,
                    uint32_t height, common::PixelFormat format,
                    Composition composition = Composition::DEVICE);