DisplayDevice doesn't need weak pointers or polymorphism
let's use a LightRefBase for now. Change-Id: Ida068fa902343a8f89ffb6d34c2cd4627ab43c6c
This commit is contained in:
parent
4297734c11
commit
028a7572c8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user