diff options
Diffstat (limited to 'services/surfaceflinger/Layer.h')
| -rw-r--r-- | services/surfaceflinger/Layer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/services/surfaceflinger/Layer.h b/services/surfaceflinger/Layer.h index a93fcb1..9ff5716 100644 --- a/services/surfaceflinger/Layer.h +++ b/services/surfaceflinger/Layer.h @@ -81,6 +81,10 @@ public: virtual sp<Surface> createSurface() const; virtual status_t ditch(); virtual void onRemoved(); + virtual bool setBypass(bool enable); + + inline sp<GraphicBuffer> getBypassBuffer() const { + return mBufferManager.getActiveBuffer(); } // only for debugging inline sp<GraphicBuffer> getBuffer(int i) const { @@ -232,6 +236,7 @@ private: uint32_t mReqFormat; bool mNeedsScaling; bool mFixedSize; + bool mBypassState; }; // --------------------------------------------------------------------------- |
