summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/BufferLayer.cpp
diff options
context:
space:
mode:
author Chia-I Wu <olv@google.com> 2018-08-28 11:01:44 -0700
committer Yiwei Zhang <zzyiwei@google.com> 2019-03-21 04:37:20 +0000
commit75dcd905652b490a31537f81a1209100df050d42 (patch)
tree713abdfe2d70d0eb098491a10a006a11944735ce /services/surfaceflinger/BufferLayer.cpp
parentbecab0f31aa76f57fdbd87913f027daa07054cf9 (diff)
surfaceflinger: improve RenderArea needsFiltering
Compare source crop (instead of the logical render area) against physical render area to decide whether filtering is required. This allows us to get rid of Layer::setFiltering. As a result, captureLayers for Recents no longer enables filtering. Screenshots under landscape mode no longer enables filtering. Bug: 113041375 Test: take screenshot, rotate screen, screencap Change-Id: Ida95fdfec3a0dde7a19adf35c91bf3d570bab6bb Merged-In: Ida95fdfec3a0dde7a19adf35c91bf3d570bab6bb
Diffstat (limited to 'services/surfaceflinger/BufferLayer.cpp')
-rw-r--r--services/surfaceflinger/BufferLayer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/BufferLayer.cpp b/services/surfaceflinger/BufferLayer.cpp
index f5b5eda9ec..707cb42336 100644
--- a/services/surfaceflinger/BufferLayer.cpp
+++ b/services/surfaceflinger/BufferLayer.cpp
@@ -204,7 +204,7 @@ void BufferLayer::onDraw(const RenderArea& renderArea, const Region& clip,
if (!blackOutLayer) {
// TODO: we could be more subtle with isFixedSize()
- const bool useFiltering = getFiltering() || needsFiltering(renderArea) || isFixedSize();
+ const bool useFiltering = needsFiltering(renderArea) || isFixedSize();
// Query the texture matrix given our current filtering mode.
float textureMatrix[16];