summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/Layer.h
diff options
context:
space:
mode:
Diffstat (limited to 'services/surfaceflinger/Layer.h')
-rw-r--r--services/surfaceflinger/Layer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/surfaceflinger/Layer.h b/services/surfaceflinger/Layer.h
index a82767b755..5fd7e59f99 100644
--- a/services/surfaceflinger/Layer.h
+++ b/services/surfaceflinger/Layer.h
@@ -109,6 +109,10 @@ protected:
virtual void dumpStats(String8& result, char* buffer, size_t SIZE) const;
virtual void clearStats();
+ sp<SurfaceFlingerConsumer> getConsumer() const {
+ return mSurfaceFlingerConsumer;
+ }
+
private:
// Creates an instance of ISurface for this Layer.
virtual sp<ISurface> createSurface();