summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/Layer.h
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2012-08-05 00:40:46 -0700
committerMathias Agopian <mathias@google.com>2012-08-05 00:40:46 -0700
commit4297734c1156fd8ede7e9c61b1e439f9e1c18cd9 (patch)
tree4fcb37b9375fe5ca630de53824c344dd9d59c04f /services/surfaceflinger/Layer.h
parentd8552d796cbcb9a89711fc8f97b34838da5cbdb7 (diff)
downloadframeworks_native-4297734c1156fd8ede7e9c61b1e439f9e1c18cd9.zip
frameworks_native-4297734c1156fd8ede7e9c61b1e439f9e1c18cd9.tar.gz
frameworks_native-4297734c1156fd8ede7e9c61b1e439f9e1c18cd9.tar.bz2
turn DisplayDevice into a reference-counted object
it's safer this way because this object owns an EGLSurface which cannot be easily reference-counted. it also gives us the ability to sub-class it, which we might want to do soon. Change-Id: I07358bb052dc5a13b4f2196b2c2b6e6e94c4bb4f
Diffstat (limited to 'services/surfaceflinger/Layer.h')
-rw-r--r--services/surfaceflinger/Layer.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/services/surfaceflinger/Layer.h b/services/surfaceflinger/Layer.h
index 5e55887..d24013b 100644
--- a/services/surfaceflinger/Layer.h
+++ b/services/surfaceflinger/Layer.h
@@ -64,18 +64,18 @@ public:
bool isFixedSize() const;
// LayerBase interface
- virtual void setGeometry(const DisplayDevice& hw,
+ virtual void setGeometry(const sp<const DisplayDevice>& hw,
HWComposer::HWCLayerInterface& layer);
- virtual void setPerFrameData(const DisplayDevice& hw,
+ virtual void setPerFrameData(const sp<const DisplayDevice>& hw,
HWComposer::HWCLayerInterface& layer);
- virtual void setAcquireFence(const DisplayDevice& hw,
+ virtual void setAcquireFence(const sp<const DisplayDevice>& hw,
HWComposer::HWCLayerInterface& layer);
- virtual void onLayerDisplayed(const DisplayDevice& hw,
+ virtual void onLayerDisplayed(const sp<const DisplayDevice>& hw,
HWComposer::HWCLayerInterface* layer);
virtual bool onPreComposition();
virtual void onPostComposition();
- virtual void onDraw(const DisplayDevice& hw, const Region& clip) const;
+ virtual void onDraw(const sp<const DisplayDevice>& hw, const Region& clip) const;
virtual uint32_t doTransaction(uint32_t transactionFlags);
virtual Region latchBuffer(bool& recomputeVisibleRegions);
virtual bool isOpaque() const;