summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/SurfaceFlinger.h
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2010-07-14 18:41:18 -0700
committerMathias Agopian <mathias@google.com>2010-07-14 18:43:19 -0700
commit24651682edaf71e8a826f23a7ea09bc97c8072c4 (patch)
treed3721d203440aaa3d8ac67890bf170a84e832b53 /services/surfaceflinger/SurfaceFlinger.h
parent4055b780bb7e85abcf4754b84e50bf407c45bec8 (diff)
downloadframeworks_base-24651682edaf71e8a826f23a7ea09bc97c8072c4.zip
frameworks_base-24651682edaf71e8a826f23a7ea09bc97c8072c4.tar.gz
frameworks_base-24651682edaf71e8a826f23a7ea09bc97c8072c4.tar.bz2
added BinderService<> template to help creating native binder services
Change-Id: Id980899d2647b56479f8a27c89eaa949f9209dfe
Diffstat (limited to 'services/surfaceflinger/SurfaceFlinger.h')
-rw-r--r--services/surfaceflinger/SurfaceFlinger.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.h b/services/surfaceflinger/SurfaceFlinger.h
index 0bfc170..8821e5c 100644
--- a/services/surfaceflinger/SurfaceFlinger.h
+++ b/services/surfaceflinger/SurfaceFlinger.h
@@ -29,6 +29,7 @@
#include <binder/IMemory.h>
#include <binder/Permission.h>
+#include <binder/BinderService.h>
#include <ui/PixelFormat.h>
#include <surfaceflinger/ISurfaceComposer.h>
@@ -167,11 +168,13 @@ enum {
eTraversalNeeded = 0x02
};
-class SurfaceFlinger : public BnSurfaceComposer, protected Thread
+class SurfaceFlinger :
+ public BinderService<SurfaceFlinger>,
+ public BnSurfaceComposer,
+ protected Thread
{
public:
- static void instantiate();
- static void shutdown();
+ static char const* getServiceName() { return "SurfaceFlinger"; }
SurfaceFlinger();
virtual ~SurfaceFlinger();