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

Commit d8552d79 authored by Mathias Agopian's avatar Mathias Agopian
Browse files

DisplayDevice only needs ANativeWindow not SurfaceTextureClient

Change-Id: Ib5be5af8bede435c8d5d9fabf586d28d0e74c2cb
parent 888c822c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -108,7 +108,7 @@ DisplayDevice::DisplayDevice()
DisplayDevice::DisplayDevice(
        const sp<SurfaceFlinger>& flinger,
        int display,
        const sp<SurfaceTextureClient>& surface,
        const sp<ANativeWindow>& surface,
        EGLConfig config)
    : mFlinger(flinger),
      mId(display),
+4 −3
Original line number Diff line number Diff line
@@ -30,13 +30,14 @@

#include "Transform.h"

struct ANativeWindow;

namespace android {

class DisplayInfo;
class FramebufferSurface;
class LayerBase;
class SurfaceFlinger;
class SurfaceTextureClient;

class DisplayDevice
{
@@ -63,7 +64,7 @@ public:
    DisplayDevice(
            const sp<SurfaceFlinger>& flinger,
            int dpy,
            const sp<SurfaceTextureClient>& surface,
            const sp<ANativeWindow>& surface,
            EGLConfig config);

    ~DisplayDevice();
@@ -136,7 +137,7 @@ private:
    int32_t mId;

    // ANativeWindow this display is rendering into
    sp<SurfaceTextureClient> mNativeWindow;
    sp<ANativeWindow> mNativeWindow;

    // set if mNativeWindow is a FramebufferSurface
    sp<FramebufferSurface> mFramebufferSurface;