summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/LayerBase.h
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2010-12-07 14:20:14 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2010-12-07 14:20:14 -0800
commita0f011ff499289c89535c41ebe79c8c642414dff (patch)
tree9296b305ddf29b60d7d355db21023c712a4daccc /services/surfaceflinger/LayerBase.h
parent48f42f8c3fbd33b2f46c6290ff5963dd58938cf9 (diff)
parent05813b0eb92cb1bc79607ee402f14ca1e4b43f6d (diff)
downloadframeworks_base-a0f011ff499289c89535c41ebe79c8c642414dff.zip
frameworks_base-a0f011ff499289c89535c41ebe79c8c642414dff.tar.gz
frameworks_base-a0f011ff499289c89535c41ebe79c8c642414dff.tar.bz2
am 05813b0e: Merge changes I244b5469,I32044e91 into gingerbread
* commit '05813b0eb92cb1bc79607ee402f14ca1e4b43f6d': [3253328, 3171580] Treat GONE and INVISIBLE views the same when calculating transparent regions [3171580] Fix two typos related to fixed-size buffers
Diffstat (limited to 'services/surfaceflinger/LayerBase.h')
-rw-r--r--services/surfaceflinger/LayerBase.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/surfaceflinger/LayerBase.h b/services/surfaceflinger/LayerBase.h
index d688f65..633df96 100644
--- a/services/surfaceflinger/LayerBase.h
+++ b/services/surfaceflinger/LayerBase.h
@@ -185,7 +185,9 @@ public:
/**
* needsLinearFiltering - true if this surface needs filtering
*/
- virtual bool needsFiltering() const { return mNeedsFiltering; }
+ virtual bool needsFiltering() const {
+ return (!(mFlags & DisplayHardware::SLOW_CONFIG)) && mNeedsFiltering;
+ }
/**
* isSecure - true if this surface is secure, that is if it prevents