diff options
| author | 2012-09-19 23:14:45 -0700 | |
|---|---|---|
| committer | 2012-09-20 17:13:58 -0700 | |
| commit | eba8c688f633f3f3f1b75c2bc64faf799dd2b5f2 (patch) | |
| tree | d23f60dda45baabf8080df7dbd5ec418d69a1991 /services/surfaceflinger/LayerBase.cpp | |
| parent | f33e4b6f13bc3ee2d2a4e1abd1ada171c70d3492 (diff) | |
calculate wether we filter on a per-display basis
Change-Id: I79d80b432b20b3d02428da19add464ac1e2b9378
Diffstat (limited to 'services/surfaceflinger/LayerBase.cpp')
| -rw-r--r-- | services/surfaceflinger/LayerBase.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/services/surfaceflinger/LayerBase.cpp b/services/surfaceflinger/LayerBase.cpp index 99cb8f3cb1..5ae0ee0e60 100644 --- a/services/surfaceflinger/LayerBase.cpp +++ b/services/surfaceflinger/LayerBase.cpp @@ -87,6 +87,10 @@ void LayerBase::initStates(uint32_t w, uint32_t h, uint32_t flags) mDrawingState = mCurrentState; } +bool LayerBase::needsFiltering(const sp<const DisplayDevice>& hw) const { + return mNeedsFiltering || hw->needsFiltering(); +} + void LayerBase::commitTransaction() { mDrawingState = mCurrentState; } |