summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2017-08-09 07:28:38 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2017-08-09 07:28:38 +0000
commit0472cd8254c2e82e50ffd7520f2d7e7a4823a277 (patch)
tree51d7deb2233103db979a2bdd1036f62f6773a89d
parente6898d7f1f338a72b9f607b1a6fd8db6b6fc5b65 (diff)
parentfc0b9110901cd9814a83c574fdaf5c4428838424 (diff)
downloadnative-0472cd8254c2e82e50ffd7520f2d7e7a4823a277.tar.gz
release-request-0d94aeff-e9b0-4346-a84f-6bebd4c3c781-for-git_oc-dr1-release-4257853 snap-temp-L72400000090817228
Change-Id: I95a8fc74237957289be70c434c7f7e70b3653657
-rw-r--r--services/surfaceflinger/SurfaceFlinger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index 0f6c581e14..a57e8cf3e4 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -4392,7 +4392,7 @@ status_t SurfaceFlinger::captureScreenImplLocked(const sp<const DisplayDevice>&
bool secureLayerIsVisible = false;
for (const auto& layer : mDrawingState.layersSortedByZ) {
const Layer::State& state(layer->getDrawingState());
- if (layer->belongsToDisplay(hw->getLayerStack(), false) ||
+ if (!layer->belongsToDisplay(hw->getLayerStack(), false) ||
(state.z < minLayerZ || state.z > maxLayerZ)) {
continue;
}