diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-01-15 16:12:10 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-01-15 16:12:10 -0800 |
commit | 8a7a67538a9977c892389bfcde76a8372aa0b56c (patch) | |
tree | 0782f82f223ddeafa9b08bd2121ded38212f67f7 /libs/surfaceflinger/LayerBuffer.h | |
parent | 276293246ea9cbc0a578a7697cc48930376ec0e9 (diff) | |
download | frameworks_native-8a7a67538a9977c892389bfcde76a8372aa0b56c.zip frameworks_native-8a7a67538a9977c892389bfcde76a8372aa0b56c.tar.gz frameworks_native-8a7a67538a9977c892389bfcde76a8372aa0b56c.tar.bz2 |
auto import from //branches/cupcake/...@126645
Diffstat (limited to 'libs/surfaceflinger/LayerBuffer.h')
-rw-r--r-- | libs/surfaceflinger/LayerBuffer.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libs/surfaceflinger/LayerBuffer.h b/libs/surfaceflinger/LayerBuffer.h index 63ec2cf..3286535 100644 --- a/libs/surfaceflinger/LayerBuffer.h +++ b/libs/surfaceflinger/LayerBuffer.h @@ -75,6 +75,7 @@ public: sp<OverlayRef> createOverlay(uint32_t w, uint32_t h, int32_t format); sp<Source> getSource() const; + sp<Source> clearSource(); void setNeedsBlending(bool blending); const Rect& getTransformedBounds() const { return mTransformedBounds; @@ -145,7 +146,8 @@ private: virtual void onVisibilityResolved(const Transform& planeTransform); private: void serverDestroy(); - class OverlayChanel : public BnOverlay { + void destroyOverlay(); + class OverlayChannel : public BnOverlay { mutable Mutex mLock; sp<OverlaySource> mSource; virtual void destroy() { @@ -160,15 +162,16 @@ private: } } public: - OverlayChanel(const sp<OverlaySource>& source) + OverlayChannel(const sp<OverlaySource>& source) : mSource(source) { } }; - friend class OverlayChanel; + friend class OverlayChannel; bool mVisibilityChanged; overlay_t* mOverlay; overlay_handle_t const *mOverlayHandle; + overlay_control_device_t* mOverlayDevice; uint32_t mWidth; uint32_t mHeight; int32_t mFormat; |