diff options
author | Mathias Agopian <mathias@google.com> | 2009-11-19 14:46:26 -0800 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2009-11-19 14:46:26 -0800 |
commit | 4c29c9487e47c5f0a23790e670dc3dc7a215d04c (patch) | |
tree | b25d30c958fa14be7749a5453b471cd4535cc2eb /libs/surfaceflinger | |
parent | 5994cd2898ad3c76d1f5068137a884024f521163 (diff) | |
download | frameworks_base-4c29c9487e47c5f0a23790e670dc3dc7a215d04c.zip frameworks_base-4c29c9487e47c5f0a23790e670dc3dc7a215d04c.tar.gz frameworks_base-4c29c9487e47c5f0a23790e670dc3dc7a215d04c.tar.bz2 |
fix [2269022] The raw picture displayed post shutter seems to have low-resolution
Make sure to always enable linear filtering in LayerBuffer. This change doesn't affect
devices using overlays.
Diffstat (limited to 'libs/surfaceflinger')
-rw-r--r-- | libs/surfaceflinger/LayerBuffer.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/surfaceflinger/LayerBuffer.cpp b/libs/surfaceflinger/LayerBuffer.cpp index 28d7c48..88ef7e4 100644 --- a/libs/surfaceflinger/LayerBuffer.cpp +++ b/libs/surfaceflinger/LayerBuffer.cpp @@ -118,7 +118,12 @@ uint32_t LayerBuffer::doTransaction(uint32_t flags) sp<Source> source(getSource()); if (source != 0) source->onTransaction(flags); - return LayerBase::doTransaction(flags); + uint32_t res = LayerBase::doTransaction(flags); + // we always want filtering for these surfaces + if (!(mFlags & DisplayHardware::SLOW_CONFIG)) { + mUseLinearFiltering = true; + } + return res; } void LayerBuffer::unlockPageFlip(const Transform& planeTransform, |