diff options
| author | Mathias Agopian <mathias@google.com> | 2010-12-07 14:20:14 -0800 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2010-12-07 14:20:14 -0800 |
| commit | a0f011ff499289c89535c41ebe79c8c642414dff (patch) | |
| tree | 9296b305ddf29b60d7d355db21023c712a4daccc /services/surfaceflinger/LayerBase.cpp | |
| parent | 48f42f8c3fbd33b2f46c6290ff5963dd58938cf9 (diff) | |
| parent | 05813b0eb92cb1bc79607ee402f14ca1e4b43f6d (diff) | |
| download | frameworks_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.cpp')
| -rw-r--r-- | services/surfaceflinger/LayerBase.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/services/surfaceflinger/LayerBase.cpp b/services/surfaceflinger/LayerBase.cpp index 64eed4b..79c6d0d 100644 --- a/services/surfaceflinger/LayerBase.cpp +++ b/services/surfaceflinger/LayerBase.cpp @@ -216,14 +216,10 @@ uint32_t LayerBase::doTransaction(uint32_t flags) flags |= eVisibleRegion; this->contentDirty = true; - mNeedsFiltering = false; - if (!(mFlags & DisplayHardware::SLOW_CONFIG)) { - // we may use linear filtering, if the matrix scales us - const uint8_t type = temp.transform.getType(); - if (!temp.transform.preserveRects() || (type >= Transform::SCALE)) { - mNeedsFiltering = true; - } - } + // we may use linear filtering, if the matrix scales us + const uint8_t type = temp.transform.getType(); + mNeedsFiltering = (!temp.transform.preserveRects() || + (type >= Transform::SCALE)); } // Commit the transaction |
