From 4c29c9487e47c5f0a23790e670dc3dc7a215d04c Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Thu, 19 Nov 2009 14:46:26 -0800 Subject: 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. --- libs/surfaceflinger/LayerBuffer.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libs/surfaceflinger/LayerBuffer.cpp') diff --git a/libs/surfaceflinger/LayerBuffer.cpp b/libs/surfaceflinger/LayerBuffer.cpp index 28d7c48b45d8..88ef7e43005c 100644 --- a/libs/surfaceflinger/LayerBuffer.cpp +++ b/libs/surfaceflinger/LayerBuffer.cpp @@ -118,7 +118,12 @@ uint32_t LayerBuffer::doTransaction(uint32_t flags) sp 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, -- cgit v1.2.3-59-g8ed1b