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
commita1e6bc864fb821c1b470b7aad9b75c441f54eeb4 (patch)
tree2f88b2cf7e3b5005942093c6139e6e427e1abfda /services/surfaceflinger/SurfaceFlinger.h
parentada17246d300f7ab9f57a7adfec4f750f209226c (diff)
downloadframeworks_native-a1e6bc864fb821c1b470b7aad9b75c441f54eeb4.zip
frameworks_native-a1e6bc864fb821c1b470b7aad9b75c441f54eeb4.tar.gz
frameworks_native-a1e6bc864fb821c1b470b7aad9b75c441f54eeb4.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();