diff options
author | 2008-12-17 18:05:43 -0800 | |
---|---|---|
committer | 2008-12-17 18:05:43 -0800 | |
commit | e09fd9e819c23dc90bca68375645e15544861330 (patch) | |
tree | 9a9fdadd1301625f875a3c126c986c79e3363ac4 /libs/surfaceflinger/LayerBase.h | |
parent | 7c1b96a165f970a09ed239bb4fb3f1b0d8f2a407 (diff) |
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'libs/surfaceflinger/LayerBase.h')
-rw-r--r-- | libs/surfaceflinger/LayerBase.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/libs/surfaceflinger/LayerBase.h b/libs/surfaceflinger/LayerBase.h index 10c1bc1859..b3f3771ae7 100644 --- a/libs/surfaceflinger/LayerBase.h +++ b/libs/surfaceflinger/LayerBase.h @@ -23,6 +23,8 @@ #include <private/ui/LayerState.h> #include <ui/Region.h> +#include <ui/Overlay.h> + #include <pixelflinger/pixelflinger.h> #include "Transform.h" @@ -223,16 +225,14 @@ public: Surface(SurfaceID id, int identity) { mParams.token = id; mParams.identity = identity; - mParams.type = 0; } Surface(SurfaceID id, const sp<IMemoryHeap>& heap0, const sp<IMemoryHeap>& heap1, - int memory_type, int identity) + int identity) { mParams.token = id; mParams.identity = identity; - mParams.type = memory_type; mParams.heap[0] = heap0; mParams.heap[1] = heap1; } @@ -240,8 +240,8 @@ public: // TODO: We now have a point here were we can clean-up the // client's mess. // This is also where surface id should be recycled. - //LOGD("Surface %d, heaps={%p, %p}, type=%d destroyed", - // mId, mHeap[0].get(), mHeap[1].get(), mMemoryType); + //LOGD("Surface %d, heaps={%p, %p} destroyed", + // mId, mHeap[0].get(), mHeap[1].get()); } virtual void getSurfaceData( @@ -254,6 +254,10 @@ public: { return INVALID_OPERATION; } virtual void postBuffer(ssize_t offset) { } virtual void unregisterBuffers() { }; + virtual sp<Overlay> createOverlay( + uint32_t w, uint32_t h, int32_t format) { + return NULL; + }; private: ISurfaceFlingerClient::surface_data_t mParams; |