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

Commit 028a7572 authored by Mathias Agopian's avatar Mathias Agopian
Browse files

DisplayDevice doesn't need weak pointers or polymorphism

let's use a LightRefBase for now.

Change-Id: Ida068fa902343a8f89ffb6d34c2cd4627ab43c6c
parent 4297734c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ class FramebufferSurface;
class LayerBase;
class SurfaceFlinger;

class DisplayDevice : public virtual RefBase
class DisplayDevice : public LightRefBase<DisplayDevice>
{
public:
    // region in layer-stack space
@@ -65,7 +65,7 @@ public:
            const sp<ANativeWindow>& surface,
            EGLConfig config);

    virtual ~DisplayDevice();
    ~DisplayDevice();

    // whether this is a valid object. An invalid DisplayDevice is returned
    // when an non existing id is requested