summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2012-08-05 01:23:51 -0700
committer Mathias Agopian <mathias@google.com> 2012-08-05 01:23:51 -0700
commit028a7572c81f91e4039b694cde1f55fdb3e483c7 (patch)
tree53ca45b4e24b68728fa0efe11d67f051195d2ec5
parent4297734c1156fd8ede7e9c61b1e439f9e1c18cd9 (diff)
DisplayDevice doesn't need weak pointers or polymorphism
let's use a LightRefBase for now. Change-Id: Ida068fa902343a8f89ffb6d34c2cd4627ab43c6c
-rw-r--r--services/surfaceflinger/DisplayDevice.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/surfaceflinger/DisplayDevice.h b/services/surfaceflinger/DisplayDevice.h
index 9bcb6fd5b0..b34bcf1751 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<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