From 028a7572c81f91e4039b694cde1f55fdb3e483c7 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Sun, 5 Aug 2012 01:23:51 -0700 Subject: [PATCH] DisplayDevice doesn't need weak pointers or polymorphism let's use a LightRefBase for now. Change-Id: Ida068fa902343a8f89ffb6d34c2cd4627ab43c6c --- services/surfaceflinger/DisplayDevice.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/surfaceflinger/DisplayDevice.h b/services/surfaceflinger/DisplayDevice.h index 9bcb6fd5b..b34bcf175 100644 --- a/services/surfaceflinger/DisplayDevice.h +++ b/services/surfaceflinger/DisplayDevice.h @@ -39,7 +39,7 @@ class FramebufferSurface; class LayerBase; class SurfaceFlinger; -class DisplayDevice : public virtual RefBase +class DisplayDevice : public LightRefBase { public: // region in layer-stack space @@ -65,7 +65,7 @@ public: const sp& surface, EGLConfig config); - virtual ~DisplayDevice(); + ~DisplayDevice(); // whether this is a valid object. An invalid DisplayDevice is returned // when an non existing id is requested